Take a look at JOGL.
There are several packages for emulating a fixed pipeline from GLES 1.0 using GLES 2.0:
package javax.media.opengl.fixedfunc; package com.jogamp.opengl.util.glsl.fixedfunc; package jogamp.opengl.util.glsl.fixedfunc;
Javadoc from class jogamp.opengl.util.glsl.fixedfunc.FixedFuncImpl;
Composable pipeline, implementing the interface javax.media.opengl.GL2ES1 Each method follows the call graph: * call prolog jogamp.opengl.util.glsl.fixedfunc.FixedFuncHook if available * call downstream javax.media.opengl.GL2ES2 if available and if no call to jogamp.opengl.util.glsl.fixedfunc.FixedFuncHook is made * Interface javax.media.opengl.GL2ES1 * Prolog jogamp.opengl.util.glsl.fixedfunc.FixedFuncHook * Downstream javax.media.opengl.GL2ES2 Sample code which installs this pipeline: GL gl = drawable.setGL( new FixedFuncImpl( drawable.getGL().getGL2ES2(), new FixedFuncHook( drawable.getGL().getGL2ES2() ) ) );
Also, take a look at the "OpenGL ES 2.0 Programming Guide" (Aaftab Munshi at alli.). There are several examples of GLES 1.0 FFP emulation shaders.
source share