Thursday, November 8, 2012

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

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 with GLES20.glGetProgramInfoLog(int) content if there's a problem with the shader source.

--
H

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate