Re: [android-developers] Creating OpenGL shaders from an alternate class

2012-11-08 Thread Harri Smått
Hi, If you're still tackling with this problem here's an example of class that I've used successfully for compiling and using GLSL shader programs; https://github.com/harism/android_effects/blob/master/src/fi/harism/effects/EffectsShader.java Compile method (setProgram) throws an exception

[android-developers] Creating OpenGL shaders from an alternate class

2012-11-01 Thread Braindrool
Title pretty much says it all. This would be so much easier if I were to just use a single class for this. But I have been trying to take advantage of Java's class system. To the point I get the Error creating shader. package com.braindrool.game; import android.opengl.GLES20; public class