jogamp.opengl.util.glsl.fixedfunc.FixedFuncImpl Maven / Gradle / Ivy
package jogamp.opengl.util.glsl.fixedfunc;
import java.io.*;
import javax.media.opengl.*;
import com.jogamp.gluegen.runtime.*;
import java.nio.*;
import javax.media.opengl.fixedfunc.GLPointerFunc;
import javax.media.opengl.GL2ES2;
import jogamp.opengl.util.glsl.fixedfunc.FixedFuncHook;
import javax.media.opengl.GL2ES1;
import javax.media.opengl.fixedfunc.GLLightingFunc;
import javax.media.opengl.fixedfunc.GLMatrixFunc;
import javax.media.opengl.GL;
/**
* Composable pipeline {@link jogamp.opengl.util.glsl.fixedfunc.FixedFuncImpl}, implementing the interface
* {@link javax.media.opengl.GL2ES1}
*
* Each method follows the call graph
* - call prolog {@link jogamp.opengl.util.glsl.fixedfunc.FixedFuncHook} if available
*
- call downstream {@link javax.media.opengl.GL2ES2} if available
* and if no call to {@link jogamp.opengl.util.glsl.fixedfunc.FixedFuncHook} is made
*
*
*
* - Interface {@link javax.media.opengl.GL2ES1}
*
- Prolog {@link jogamp.opengl.util.glsl.fixedfunc.FixedFuncHook}
*
- Downstream {@link javax.media.opengl.GL2ES2}
*
* Sample code which installs this pipeline:
*
GL gl = drawable.setGL( new FixedFuncImpl( drawable.getGL().getGL2ES2(), new FixedFuncHook( drawable.getGL().getGL2ES2() ) ) );
*/
public class FixedFuncImpl implements javax.media.opengl.GL, javax.media.opengl.fixedfunc.GLMatrixFunc, javax.media.opengl.fixedfunc.GLPointerFunc, javax.media.opengl.fixedfunc.GLLightingFunc, javax.media.opengl.GL2ES1{
public static final boolean DEBUG = jogamp.opengl.Debug.debug("FixedFuncImpl");
public FixedFuncImpl(GL2ES2 downstreamGL2ES2, FixedFuncHook prologFixedFuncHook)
{
if (downstreamGL2ES2 == null) {
throw new IllegalArgumentException("null downstreamGL2ES2");
}
this.downstreamGL2ES2 = downstreamGL2ES2;
this.prologFixedFuncHook = prologFixedFuncHook;
}
@Override
public final boolean isGL() {
return true;
}
@Override
public final boolean isGL4bc() {
return false;
}
@Override
public final boolean isGL4() {
return false;
}
@Override
public final boolean isGL3bc() {
return false;
}
@Override
public final boolean isGL3() {
return false;
}
@Override
public final boolean isGL2() {
return false;
}
@Override
public final boolean isGLES1() {
return false;
}
@Override
public final boolean isGLES2() {
return false;
}
@Override
public final boolean isGLES3() {
return false;
}
@Override
public final boolean isGL2ES1() {
return true;
}
@Override
public final boolean isGL2ES2() {
return false;
}
@Override
public final boolean isGL2ES3() {
return false;
}
@Override
public final boolean isGL3ES3() {
return false;
}
@Override
public final boolean isGL4ES3() {
return false;
}
@Override
public final boolean isGL2GL3() {
return false;
}
@Override
public final boolean isGLES() {
return isGLES2() || isGLES1();
}
@Override
public final boolean isGL4core() {
return downstreamGL2ES2.isGL4core();
}
@Override
public final boolean isGL3core() {
return downstreamGL2ES2.isGL3core();
}
@Override
public final boolean isGLcore() {
return downstreamGL2ES2.isGLcore();
}
@Override
public final boolean isGLES2Compatible() {
return downstreamGL2ES2.isGLES2Compatible();
}
@Override
public final boolean isGLES3Compatible() {
return downstreamGL2ES2.isGLES3Compatible();
}
@Override
public final javax.media.opengl.GL getGL() {
return this;
}
@Override
public final javax.media.opengl.GL4bc getGL4bc() {
throw new GLException("Not a GL4bc implementation");
}
@Override
public final javax.media.opengl.GL4 getGL4() {
throw new GLException("Not a GL4 implementation");
}
@Override
public final javax.media.opengl.GL3bc getGL3bc() {
throw new GLException("Not a GL3bc implementation");
}
@Override
public final javax.media.opengl.GL3 getGL3() {
throw new GLException("Not a GL3 implementation");
}
@Override
public final javax.media.opengl.GL2 getGL2() {
throw new GLException("Not a GL2 implementation");
}
@Override
public final javax.media.opengl.GLES1 getGLES1() {
throw new GLException("Not a GLES1 implementation");
}
@Override
public final javax.media.opengl.GLES2 getGLES2() {
throw new GLException("Not a GLES2 implementation");
}
@Override
public final javax.media.opengl.GLES3 getGLES3() {
throw new GLException("Not a GLES3 implementation");
}
@Override
public final javax.media.opengl.GL2ES1 getGL2ES1() {
return this;
}
@Override
public final javax.media.opengl.GL2ES2 getGL2ES2() {
throw new GLException("Not a GL2ES2 implementation");
}
@Override
public final javax.media.opengl.GL2ES3 getGL2ES3() {
throw new GLException("Not a GL2ES3 implementation");
}
@Override
public final javax.media.opengl.GL3ES3 getGL3ES3() {
throw new GLException("Not a GL3ES3 implementation");
}
@Override
public final javax.media.opengl.GL4ES3 getGL4ES3() {
throw new GLException("Not a GL4ES3 implementation");
}
@Override
public final javax.media.opengl.GL2GL3 getGL2GL3() {
throw new GLException("Not a GL2GL3 implementation");
}
@Override
public final GL getDownstreamGL() throws GLException {
return downstreamGL2ES2;
}
@Override
public final GLProfile getGLProfile() {
return downstreamGL2ES2.getGLProfile();
}
public void glEnableClientState(int arg0)
{
prologFixedFuncHook.glEnableClientState(arg0);
}
public void glTexParameteri(int arg0,int arg1,int arg2)
{
downstreamGL2ES2.glTexParameteri(arg0,arg1,arg2);
}
public void glTextureStorage1D(int arg0,int arg1,int arg2,int arg3,int arg4)
{
downstreamGL2ES2.glTextureStorage1D(arg0,arg1,arg2,arg3,arg4);
}
public int getMaxRenderbufferSamples()
{
return downstreamGL2ES2.getMaxRenderbufferSamples();
}
public void glPointParameterf(int arg0,float arg1)
{
prologFixedFuncHook.glPointParameterf(arg0,arg1);
}
public void glGetTexGeniv(int arg0,int arg1,int[] arg2,int arg3)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glGetTexGeniv("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" 0x"+Integer.toHexString(arg1).toUpperCase()+", "+"<[I>"+", "+" 0x"+Integer.toHexString(arg3).toUpperCase()+")"); }
}
public void glCompressedTexImage2D(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,long arg7)
{
downstreamGL2ES2.glCompressedTexImage2D(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7);
}
public void glTexSubImage2D(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,int arg7,long arg8)
{
downstreamGL2ES2.glTexSubImage2D(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
}
public void glFlushMappedBufferRange(int arg0,long arg1,long arg2)
{
downstreamGL2ES2.glFlushMappedBufferRange(arg0,arg1,arg2);
}
public void glGetTexParameterfv(int arg0,int arg1,java.nio.FloatBuffer arg2)
{
downstreamGL2ES2.glGetTexParameterfv(arg0,arg1,arg2);
}
public void glMaterialfv(int arg0,int arg1,float[] arg2,int arg3)
{
prologFixedFuncHook.glMaterialfv(arg0,arg1,arg2,arg3);
}
public void glTexGeni(int arg0,int arg1,int arg2)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glTexGeni("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" 0x"+Integer.toHexString(arg1).toUpperCase()+", "+" 0x"+Integer.toHexString(arg2).toUpperCase()+")"); }
}
public void glClearStencil(int arg0)
{
downstreamGL2ES2.glClearStencil(arg0);
}
public void glTexParameterf(int arg0,int arg1,float arg2)
{
downstreamGL2ES2.glTexParameterf(arg0,arg1,arg2);
}
public void glTranslatef(float arg0,float arg1,float arg2)
{
prologFixedFuncHook.glTranslatef(arg0,arg1,arg2);
}
public void glFramebufferRenderbuffer(int arg0,int arg1,int arg2,int arg3)
{
downstreamGL2ES2.glFramebufferRenderbuffer(arg0,arg1,arg2,arg3);
}
public void glLoadIdentity()
{
prologFixedFuncHook.glLoadIdentity();
}
public void glFramebufferTexture2D(int arg0,int arg1,int arg2,int arg3,int arg4)
{
downstreamGL2ES2.glFramebufferTexture2D(arg0,arg1,arg2,arg3,arg4);
}
public void glMaterialfv(int arg0,int arg1,java.nio.FloatBuffer arg2)
{
prologFixedFuncHook.glMaterialfv(arg0,arg1,arg2);
}
public void glTexEnviv(int arg0,int arg1,int[] arg2,int arg3)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glTexEnviv("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" 0x"+Integer.toHexString(arg1).toUpperCase()+", "+"<[I>"+", "+" 0x"+Integer.toHexString(arg3).toUpperCase()+")"); }
}
public void glGetTexParameterfv(int arg0,int arg1,float[] arg2,int arg3)
{
downstreamGL2ES2.glGetTexParameterfv(arg0,arg1,arg2,arg3);
}
public boolean glIsVBOArrayBound()
{
return downstreamGL2ES2.glIsVBOArrayBound();
}
public java.lang.Object getExtension(java.lang.String arg0)
{
return downstreamGL2ES2.getExtension(arg0);
}
public void glAlphaFunc(int arg0,float arg1)
{
prologFixedFuncHook.glAlphaFunc(arg0,arg1);
}
public boolean glIsFramebuffer(int arg0)
{
return downstreamGL2ES2.glIsFramebuffer(arg0);
}
public void glActiveTexture(int arg0)
{
prologFixedFuncHook.glActiveTexture(arg0);
}
public int getSwapInterval()
{
return downstreamGL2ES2.getSwapInterval();
}
public void glTexStorage2D(int arg0,int arg1,int arg2,int arg3,int arg4)
{
downstreamGL2ES2.glTexStorage2D(arg0,arg1,arg2,arg3,arg4);
}
public void glTextureStorage3D(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6)
{
downstreamGL2ES2.glTextureStorage3D(arg0,arg1,arg2,arg3,arg4,arg5,arg6);
}
public boolean glIsTexture(int arg0)
{
return downstreamGL2ES2.glIsTexture(arg0);
}
public void glColorPointer(int arg0,int arg1,int arg2,long arg3)
{
prologFixedFuncHook.glColorPointer(arg0,arg1,arg2,arg3);
}
public void glTexEnvfv(int arg0,int arg1,java.nio.FloatBuffer arg2)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glTexEnvfv("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" 0x"+Integer.toHexString(arg1).toUpperCase()+", "+" "+arg2+")"); }
}
public boolean glIsEnabled(int arg0)
{
return downstreamGL2ES2.glIsEnabled(arg0);
}
public void glVertexPointer(int arg0,int arg1,int arg2,java.nio.Buffer arg3)
{
prologFixedFuncHook.glVertexPointer(arg0,arg1,arg2,arg3);
}
public void glFlush()
{
downstreamGL2ES2.glFlush();
}
public void glGetTexGeniv(int arg0,int arg1,java.nio.IntBuffer arg2)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glGetTexGeniv("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" 0x"+Integer.toHexString(arg1).toUpperCase()+", "+" "+arg2+")"); }
}
public void glTexEnvi(int arg0,int arg1,int arg2)
{
prologFixedFuncHook.glTexEnvi(arg0,arg1,arg2);
}
public void glCullFace(int arg0)
{
downstreamGL2ES2.glCullFace(arg0);
}
public javax.media.opengl.GL getRootGL()
{
return downstreamGL2ES2.getRootGL();
}
public void glGetTexGenfv(int arg0,int arg1,float[] arg2,int arg3)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glGetTexGenfv("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" 0x"+Integer.toHexString(arg1).toUpperCase()+", "+"<[F>"+", "+" 0x"+Integer.toHexString(arg3).toUpperCase()+")"); }
}
public void glGetTexEnvfv(int arg0,int arg1,float[] arg2,int arg3)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glGetTexEnvfv("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" 0x"+Integer.toHexString(arg1).toUpperCase()+", "+"<[F>"+", "+" 0x"+Integer.toHexString(arg3).toUpperCase()+")"); }
}
public void glGetTexGenfv(int arg0,int arg1,java.nio.FloatBuffer arg2)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glGetTexGenfv("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" 0x"+Integer.toHexString(arg1).toUpperCase()+", "+" "+arg2+")"); }
}
public void glGetTexEnvfv(int arg0,int arg1,java.nio.FloatBuffer arg2)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glGetTexEnvfv("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" 0x"+Integer.toHexString(arg1).toUpperCase()+", "+" "+arg2+")"); }
}
public void glStencilOp(int arg0,int arg1,int arg2)
{
downstreamGL2ES2.glStencilOp(arg0,arg1,arg2);
}
public void glBindBuffer(int arg0,int arg1)
{
downstreamGL2ES2.glBindBuffer(arg0,arg1);
}
public void setSwapInterval(int arg0)
{
downstreamGL2ES2.setSwapInterval(arg0);
}
public int getDefaultReadFramebuffer()
{
return downstreamGL2ES2.getDefaultReadFramebuffer();
}
public boolean isTextureFormatBGRA8888Available()
{
return downstreamGL2ES2.isTextureFormatBGRA8888Available();
}
public void glBlendFuncSeparate(int arg0,int arg1,int arg2,int arg3)
{
downstreamGL2ES2.glBlendFuncSeparate(arg0,arg1,arg2,arg3);
}
public boolean hasFullFBOSupport()
{
return downstreamGL2ES2.hasFullFBOSupport();
}
public void glBlendEquation(int arg0)
{
downstreamGL2ES2.glBlendEquation(arg0);
}
public void glTexEnviv(int arg0,int arg1,java.nio.IntBuffer arg2)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glTexEnviv("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" 0x"+Integer.toHexString(arg1).toUpperCase()+", "+" "+arg2+")"); }
}
public void glTexEnvfv(int arg0,int arg1,float[] arg2,int arg3)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glTexEnvfv("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" 0x"+Integer.toHexString(arg1).toUpperCase()+", "+"<[F>"+", "+" 0x"+Integer.toHexString(arg3).toUpperCase()+")"); }
}
public void glBlendEquationSeparate(int arg0,int arg1)
{
downstreamGL2ES2.glBlendEquationSeparate(arg0,arg1);
}
public void glColorPointer(javax.media.opengl.GLArrayData arg0)
{
prologFixedFuncHook.glColorPointer(arg0);
}
public boolean isExtensionAvailable(java.lang.String arg0)
{
return downstreamGL2ES2.isExtensionAvailable(arg0);
}
public void glBindFramebuffer(int arg0,int arg1)
{
downstreamGL2ES2.glBindFramebuffer(arg0,arg1);
}
public javax.media.opengl.GLContext getContext()
{
return downstreamGL2ES2.getContext();
}
public java.nio.ByteBuffer glMapBuffer(int arg0,int arg1)
{
return downstreamGL2ES2.glMapBuffer(arg0,arg1);
}
public void glLineWidth(float arg0)
{
downstreamGL2ES2.glLineWidth(arg0);
}
public void glTexParameterfv(int arg0,int arg1,java.nio.FloatBuffer arg2)
{
downstreamGL2ES2.glTexParameterfv(arg0,arg1,arg2);
}
public void glMaterialf(int arg0,int arg1,float arg2)
{
prologFixedFuncHook.glMaterialf(arg0,arg1,arg2);
}
public long glGetBufferSize(int arg0)
{
return downstreamGL2ES2.glGetBufferSize(arg0);
}
public void glBlendFunc(int arg0,int arg1)
{
downstreamGL2ES2.glBlendFunc(arg0,arg1);
}
public void glGetFramebufferAttachmentParameteriv(int arg0,int arg1,int arg2,int[] arg3,int arg4)
{
downstreamGL2ES2.glGetFramebufferAttachmentParameteriv(arg0,arg1,arg2,arg3,arg4);
}
public void glClientActiveTexture(int arg0)
{
prologFixedFuncHook.glClientActiveTexture(arg0);
}
public void glCopyTexImage2D(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,int arg7)
{
downstreamGL2ES2.glCopyTexImage2D(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7);
}
public void glTexSubImage2D(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,int arg7,java.nio.Buffer arg8)
{
downstreamGL2ES2.glTexSubImage2D(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
}
public boolean hasGLSL()
{
return downstreamGL2ES2.hasGLSL();
}
public void glTexParameterfv(int arg0,int arg1,float[] arg2,int arg3)
{
downstreamGL2ES2.glTexParameterfv(arg0,arg1,arg2,arg3);
}
public void glDeleteFramebuffers(int arg0,int[] arg1,int arg2)
{
downstreamGL2ES2.glDeleteFramebuffers(arg0,arg1,arg2);
}
public void glDepthRange(double arg0,double arg1)
{
downstreamGL2ES2.glDepthRange(arg0,arg1);
}
public void glTexEnvf(int arg0,int arg1,float arg2)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glTexEnvf("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" 0x"+Integer.toHexString(arg1).toUpperCase()+", "+" "+arg2+")"); }
}
public void glCompressedTexImage2D(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,java.nio.Buffer arg7)
{
downstreamGL2ES2.glCompressedTexImage2D(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7);
}
public void glGetTexParameteriv(int arg0,int arg1,int[] arg2,int arg3)
{
downstreamGL2ES2.glGetTexParameteriv(arg0,arg1,arg2,arg3);
}
public void glDeleteRenderbuffers(int arg0,java.nio.IntBuffer arg1)
{
downstreamGL2ES2.glDeleteRenderbuffers(arg0,arg1);
}
public void glGenerateMipmap(int arg0)
{
downstreamGL2ES2.glGenerateMipmap(arg0);
}
public void glMatrixMode(int arg0)
{
prologFixedFuncHook.glMatrixMode(arg0);
}
public void glVertexPointer(javax.media.opengl.GLArrayData arg0)
{
prologFixedFuncHook.glVertexPointer(arg0);
}
public void glEnable(int arg0)
{
prologFixedFuncHook.glEnable(arg0);
}
public void glClearColor(float arg0,float arg1,float arg2,float arg3)
{
downstreamGL2ES2.glClearColor(arg0,arg1,arg2,arg3);
}
public void glOrtho(double arg0,double arg1,double arg2,double arg3,double arg4,double arg5)
{
prologFixedFuncHook.glOrtho(arg0,arg1,arg2,arg3,arg4,arg5);
}
public void glDepthRangef(float arg0,float arg1)
{
downstreamGL2ES2.glDepthRangef(arg0,arg1);
}
public boolean glUnmapBuffer(int arg0)
{
return downstreamGL2ES2.glUnmapBuffer(arg0);
}
public void glNormalPointer(javax.media.opengl.GLArrayData arg0)
{
prologFixedFuncHook.glNormalPointer(arg0);
}
public void glDeleteRenderbuffers(int arg0,int[] arg1,int arg2)
{
downstreamGL2ES2.glDeleteRenderbuffers(arg0,arg1,arg2);
}
public void glColorMask(boolean arg0,boolean arg1,boolean arg2,boolean arg3)
{
downstreamGL2ES2.glColorMask(arg0,arg1,arg2,arg3);
}
public void glGetTexParameteriv(int arg0,int arg1,java.nio.IntBuffer arg2)
{
downstreamGL2ES2.glGetTexParameteriv(arg0,arg1,arg2);
}
public void glBindTexture(int arg0,int arg1)
{
prologFixedFuncHook.glBindTexture(arg0,arg1);
}
public void glDeleteFramebuffers(int arg0,java.nio.IntBuffer arg1)
{
downstreamGL2ES2.glDeleteFramebuffers(arg0,arg1);
}
public java.lang.Object getPlatformGLExtensions()
{
return downstreamGL2ES2.getPlatformGLExtensions();
}
public void glColor4f(float arg0,float arg1,float arg2,float arg3)
{
prologFixedFuncHook.glColor4f(arg0,arg1,arg2,arg3);
}
public void glVertexPointer(int arg0,int arg1,int arg2,long arg3)
{
prologFixedFuncHook.glVertexPointer(arg0,arg1,arg2,arg3);
}
public void glTexGenf(int arg0,int arg1,float arg2)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glTexGenf("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" 0x"+Integer.toHexString(arg1).toUpperCase()+", "+" "+arg2+")"); }
}
public void glGetFramebufferAttachmentParameteriv(int arg0,int arg1,int arg2,java.nio.IntBuffer arg3)
{
downstreamGL2ES2.glGetFramebufferAttachmentParameteriv(arg0,arg1,arg2,arg3);
}
public void glColorPointer(int arg0,int arg1,int arg2,java.nio.Buffer arg3)
{
prologFixedFuncHook.glColorPointer(arg0,arg1,arg2,arg3);
}
public void glDeleteBuffers(int arg0,java.nio.IntBuffer arg1)
{
downstreamGL2ES2.glDeleteBuffers(arg0,arg1);
}
public void glTexGeniv(int arg0,int arg1,java.nio.IntBuffer arg2)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glTexGeniv("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" 0x"+Integer.toHexString(arg1).toUpperCase()+", "+" "+arg2+")"); }
}
public boolean glIsBuffer(int arg0)
{
return downstreamGL2ES2.glIsBuffer(arg0);
}
public void glBindRenderbuffer(int arg0,int arg1)
{
downstreamGL2ES2.glBindRenderbuffer(arg0,arg1);
}
public void glViewport(int arg0,int arg1,int arg2,int arg3)
{
downstreamGL2ES2.glViewport(arg0,arg1,arg2,arg3);
}
public java.nio.ByteBuffer glMapBufferRange(int arg0,long arg1,long arg2,int arg3)
{
return downstreamGL2ES2.glMapBufferRange(arg0,arg1,arg2,arg3);
}
public void glReadPixels(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,long arg6)
{
downstreamGL2ES2.glReadPixels(arg0,arg1,arg2,arg3,arg4,arg5,arg6);
}
public void glLightf(int arg0,int arg1,float arg2)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glLightf("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" 0x"+Integer.toHexString(arg1).toUpperCase()+", "+" "+arg2+")"); }
}
public boolean glIsRenderbuffer(int arg0)
{
return downstreamGL2ES2.glIsRenderbuffer(arg0);
}
public void glRotatef(float arg0,float arg1,float arg2,float arg3)
{
prologFixedFuncHook.glRotatef(arg0,arg1,arg2,arg3);
}
public void glPushMatrix()
{
prologFixedFuncHook.glPushMatrix();
}
public void glPolygonOffset(float arg0,float arg1)
{
downstreamGL2ES2.glPolygonOffset(arg0,arg1);
}
public int glGetGraphicsResetStatus()
{
return downstreamGL2ES2.glGetGraphicsResetStatus();
}
public void glGetBufferParameteriv(int arg0,int arg1,java.nio.IntBuffer arg2)
{
downstreamGL2ES2.glGetBufferParameteriv(arg0,arg1,arg2);
}
public void glDisable(int arg0)
{
prologFixedFuncHook.glDisable(arg0);
}
public int getDefaultReadBuffer()
{
return downstreamGL2ES2.getDefaultReadBuffer();
}
public void glColor4ub(byte arg0,byte arg1,byte arg2,byte arg3)
{
prologFixedFuncHook.glColor4ub(arg0,arg1,arg2,arg3);
}
public void glPointSize(float arg0)
{
prologFixedFuncHook.glPointSize(arg0);
}
public java.lang.String glGetString(int arg0)
{
return downstreamGL2ES2.glGetString(arg0);
}
public void glPopMatrix()
{
prologFixedFuncHook.glPopMatrix();
}
public void glGetnUniformiv(int arg0,int arg1,int arg2,java.nio.IntBuffer arg3)
{
downstreamGL2ES2.glGetnUniformiv(arg0,arg1,arg2,arg3);
}
public void glDrawElements(int arg0,int arg1,int arg2,long arg3)
{
prologFixedFuncHook.glDrawElements(arg0,arg1,arg2,arg3);
}
public void glDepthMask(boolean arg0)
{
downstreamGL2ES2.glDepthMask(arg0);
}
public void glClearDepth(double arg0)
{
downstreamGL2ES2.glClearDepth(arg0);
}
public boolean isNPOTTextureAvailable()
{
return downstreamGL2ES2.isNPOTTextureAvailable();
}
public void glDisableClientState(int arg0)
{
prologFixedFuncHook.glDisableClientState(arg0);
}
public void glClear(int arg0)
{
downstreamGL2ES2.glClear(arg0);
}
public void glFogf(int arg0,float arg1)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glFogf("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" "+arg1+")"); }
}
public void glCopyTexSubImage2D(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,int arg7)
{
downstreamGL2ES2.glCopyTexSubImage2D(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7);
}
public void glTexImage2D(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,int arg7,long arg8)
{
prologFixedFuncHook.glTexImage2D(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
}
public void glGetnUniformfv(int arg0,int arg1,int arg2,java.nio.FloatBuffer arg3)
{
downstreamGL2ES2.glGetnUniformfv(arg0,arg1,arg2,arg3);
}
public boolean glIsVBOElementArrayBound()
{
return downstreamGL2ES2.glIsVBOElementArrayBound();
}
public void glTexCoordPointer(int arg0,int arg1,int arg2,long arg3)
{
prologFixedFuncHook.glTexCoordPointer(arg0,arg1,arg2,arg3);
}
public void glScalef(float arg0,float arg1,float arg2)
{
prologFixedFuncHook.glScalef(arg0,arg1,arg2);
}
public void glDeleteBuffers(int arg0,int[] arg1,int arg2)
{
downstreamGL2ES2.glDeleteBuffers(arg0,arg1,arg2);
}
public void glTexGeniv(int arg0,int arg1,int[] arg2,int arg3)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glTexGeniv("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" 0x"+Integer.toHexString(arg1).toUpperCase()+", "+"<[I>"+", "+" 0x"+Integer.toHexString(arg3).toUpperCase()+")"); }
}
public int glGetBoundBuffer(int arg0)
{
return downstreamGL2ES2.glGetBoundBuffer(arg0);
}
public void glTexCoordPointer(javax.media.opengl.GLArrayData arg0)
{
prologFixedFuncHook.glTexCoordPointer(arg0);
}
public void glCompressedTexSubImage2D(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,int arg7,java.nio.Buffer arg8)
{
downstreamGL2ES2.glCompressedTexSubImage2D(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
}
public void glDrawArrays(int arg0,int arg1,int arg2)
{
prologFixedFuncHook.glDrawArrays(arg0,arg1,arg2);
}
public int getBoundFramebuffer(int arg0)
{
return downstreamGL2ES2.getBoundFramebuffer(arg0);
}
public boolean hasBasicFBOSupport()
{
return downstreamGL2ES2.hasBasicFBOSupport();
}
public int getDefaultDrawFramebuffer()
{
return downstreamGL2ES2.getDefaultDrawFramebuffer();
}
public void glLightModelf(int arg0,float arg1)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glLightModelf("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" "+arg1+")"); }
}
public void glGetnUniformiv(int arg0,int arg1,int arg2,int[] arg3,int arg4)
{
downstreamGL2ES2.glGetnUniformiv(arg0,arg1,arg2,arg3,arg4);
}
public void glStencilMask(int arg0)
{
downstreamGL2ES2.glStencilMask(arg0);
}
public void glGetnUniformfv(int arg0,int arg1,int arg2,float[] arg3,int arg4)
{
downstreamGL2ES2.glGetnUniformfv(arg0,arg1,arg2,arg3,arg4);
}
public void glNormalPointer(int arg0,int arg1,long arg2)
{
prologFixedFuncHook.glNormalPointer(arg0,arg1,arg2);
}
public void glGetBufferParameteriv(int arg0,int arg1,int[] arg2,int arg3)
{
downstreamGL2ES2.glGetBufferParameteriv(arg0,arg1,arg2,arg3);
}
public void glGetLightfv(int arg0,int arg1,float[] arg2,int arg3)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glGetLightfv("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" 0x"+Integer.toHexString(arg1).toUpperCase()+", "+"<[F>"+", "+" 0x"+Integer.toHexString(arg3).toUpperCase()+")"); }
}
public void glDrawElements(int arg0,int arg1,int arg2,java.nio.Buffer arg3)
{
prologFixedFuncHook.glDrawElements(arg0,arg1,arg2,arg3);
}
public void glLightfv(int arg0,int arg1,float[] arg2,int arg3)
{
prologFixedFuncHook.glLightfv(arg0,arg1,arg2,arg3);
}
public void glTextureStorage2D(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5)
{
downstreamGL2ES2.glTextureStorage2D(arg0,arg1,arg2,arg3,arg4,arg5);
}
public void glGenRenderbuffers(int arg0,int[] arg1,int arg2)
{
downstreamGL2ES2.glGenRenderbuffers(arg0,arg1,arg2);
}
public void glGetFloatv(int arg0,float[] arg1,int arg2)
{
prologFixedFuncHook.glGetFloatv(arg0,arg1,arg2);
}
public void glTexParameteriv(int arg0,int arg1,int[] arg2,int arg3)
{
downstreamGL2ES2.glTexParameteriv(arg0,arg1,arg2,arg3);
}
public boolean isFunctionAvailable(java.lang.String arg0)
{
return downstreamGL2ES2.isFunctionAvailable(arg0);
}
public void glFrustumf(float arg0,float arg1,float arg2,float arg3,float arg4,float arg5)
{
prologFixedFuncHook.glFrustumf(arg0,arg1,arg2,arg3,arg4,arg5);
}
public void glGenBuffers(int arg0,int[] arg1,int arg2)
{
downstreamGL2ES2.glGenBuffers(arg0,arg1,arg2);
}
public void glGetMaterialfv(int arg0,int arg1,java.nio.FloatBuffer arg2)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glGetMaterialfv("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" 0x"+Integer.toHexString(arg1).toUpperCase()+", "+" "+arg2+")"); }
}
public void glPixelStorei(int arg0,int arg1)
{
downstreamGL2ES2.glPixelStorei(arg0,arg1);
}
public void glBufferData(int arg0,long arg1,java.nio.Buffer arg2,int arg3)
{
downstreamGL2ES2.glBufferData(arg0,arg1,arg2,arg3);
}
public void glLoadMatrixf(java.nio.FloatBuffer arg0)
{
prologFixedFuncHook.glLoadMatrixf(arg0);
}
public void glStencilFunc(int arg0,int arg1,int arg2)
{
downstreamGL2ES2.glStencilFunc(arg0,arg1,arg2);
}
public void glScissor(int arg0,int arg1,int arg2,int arg3)
{
downstreamGL2ES2.glScissor(arg0,arg1,arg2,arg3);
}
public void glGenTextures(int arg0,java.nio.IntBuffer arg1)
{
downstreamGL2ES2.glGenTextures(arg0,arg1);
}
public void glDepthFunc(int arg0)
{
downstreamGL2ES2.glDepthFunc(arg0);
}
public void glGenFramebuffers(int arg0,int[] arg1,int arg2)
{
downstreamGL2ES2.glGenFramebuffers(arg0,arg1,arg2);
}
public void glGetTexEnviv(int arg0,int arg1,java.nio.IntBuffer arg2)
{
prologFixedFuncHook.glGetTexEnviv(arg0,arg1,arg2);
}
public void glDeleteTextures(int arg0,int[] arg1,int arg2)
{
downstreamGL2ES2.glDeleteTextures(arg0,arg1,arg2);
}
public void glLoadMatrixf(float[] arg0,int arg1)
{
prologFixedFuncHook.glLoadMatrixf(arg0,arg1);
}
public void glGetRenderbufferParameteriv(int arg0,int arg1,java.nio.IntBuffer arg2)
{
downstreamGL2ES2.glGetRenderbufferParameteriv(arg0,arg1,arg2);
}
public void glMultiTexCoord4f(int arg0,float arg1,float arg2,float arg3,float arg4)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glMultiTexCoord4f("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" "+arg1+", "+" "+arg2+", "+" "+arg3+", "+" "+arg4+")"); }
}
public void glGetMaterialfv(int arg0,int arg1,float[] arg2,int arg3)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glGetMaterialfv("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" 0x"+Integer.toHexString(arg1).toUpperCase()+", "+"<[F>"+", "+" 0x"+Integer.toHexString(arg3).toUpperCase()+")"); }
}
public void glGetFloatv(int arg0,java.nio.FloatBuffer arg1)
{
prologFixedFuncHook.glGetFloatv(arg0,arg1);
}
public void glGetIntegerv(int arg0,int[] arg1,int arg2)
{
prologFixedFuncHook.glGetIntegerv(arg0,arg1,arg2);
}
public void glReadPixels(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,java.nio.Buffer arg6)
{
downstreamGL2ES2.glReadPixels(arg0,arg1,arg2,arg3,arg4,arg5,arg6);
}
public void glTexStorage1D(int arg0,int arg1,int arg2,int arg3)
{
downstreamGL2ES2.glTexStorage1D(arg0,arg1,arg2,arg3);
}
public void glGetLightfv(int arg0,int arg1,java.nio.FloatBuffer arg2)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glGetLightfv("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" 0x"+Integer.toHexString(arg1).toUpperCase()+", "+" "+arg2+")"); }
}
public void glLightfv(int arg0,int arg1,java.nio.FloatBuffer arg2)
{
prologFixedFuncHook.glLightfv(arg0,arg1,arg2);
}
public int glCheckFramebufferStatus(int arg0)
{
return downstreamGL2ES2.glCheckFramebufferStatus(arg0);
}
public void glGenTextures(int arg0,int[] arg1,int arg2)
{
downstreamGL2ES2.glGenTextures(arg0,arg1,arg2);
}
public void glClearDepthf(float arg0)
{
downstreamGL2ES2.glClearDepthf(arg0);
}
public void glLogicOp(int arg0)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glLogicOp("+" 0x"+Integer.toHexString(arg0).toUpperCase()+")"); }
}
public void glFogfv(int arg0,float[] arg1,int arg2)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glFogfv("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+"<[F>"+", "+" 0x"+Integer.toHexString(arg2).toUpperCase()+")"); }
}
public void glNormalPointer(int arg0,int arg1,java.nio.Buffer arg2)
{
prologFixedFuncHook.glNormalPointer(arg0,arg1,arg2);
}
public int glGetError()
{
return downstreamGL2ES2.glGetError();
}
public void glTexGenfv(int arg0,int arg1,float[] arg2,int arg3)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glTexGenfv("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" 0x"+Integer.toHexString(arg1).toUpperCase()+", "+"<[F>"+", "+" 0x"+Integer.toHexString(arg3).toUpperCase()+")"); }
}
public void glFinish()
{
downstreamGL2ES2.glFinish();
}
public void glLightModelfv(int arg0,java.nio.FloatBuffer arg1)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glLightModelfv("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" "+arg1+")"); }
}
public void glGenBuffers(int arg0,java.nio.IntBuffer arg1)
{
downstreamGL2ES2.glGenBuffers(arg0,arg1);
}
public void glTexParameteriv(int arg0,int arg1,java.nio.IntBuffer arg2)
{
downstreamGL2ES2.glTexParameteriv(arg0,arg1,arg2);
}
public void glCompressedTexSubImage2D(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,int arg7,long arg8)
{
downstreamGL2ES2.glCompressedTexSubImage2D(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
}
public void glMultMatrixf(float[] arg0,int arg1)
{
prologFixedFuncHook.glMultMatrixf(arg0,arg1);
}
public void glPointParameterfv(int arg0,java.nio.FloatBuffer arg1)
{
prologFixedFuncHook.glPointParameterfv(arg0,arg1);
}
public void glGenRenderbuffers(int arg0,java.nio.IntBuffer arg1)
{
downstreamGL2ES2.glGenRenderbuffers(arg0,arg1);
}
public void glRenderbufferStorage(int arg0,int arg1,int arg2,int arg3)
{
downstreamGL2ES2.glRenderbufferStorage(arg0,arg1,arg2,arg3);
}
public void glFrontFace(int arg0)
{
downstreamGL2ES2.glFrontFace(arg0);
}
public void glTexCoordPointer(int arg0,int arg1,int arg2,java.nio.Buffer arg3)
{
prologFixedFuncHook.glTexCoordPointer(arg0,arg1,arg2,arg3);
}
public void glFrustum(double arg0,double arg1,double arg2,double arg3,double arg4,double arg5)
{
prologFixedFuncHook.glFrustum(arg0,arg1,arg2,arg3,arg4,arg5);
}
public void glMultMatrixf(java.nio.FloatBuffer arg0)
{
prologFixedFuncHook.glMultMatrixf(arg0);
}
public void glShadeModel(int arg0)
{
prologFixedFuncHook.glShadeModel(arg0);
}
public void glBufferSubData(int arg0,long arg1,long arg2,java.nio.Buffer arg3)
{
downstreamGL2ES2.glBufferSubData(arg0,arg1,arg2,arg3);
}
public void glNormal3f(float arg0,float arg1,float arg2)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glNormal3f("+" "+arg0+", "+" "+arg1+", "+" "+arg2+")"); }
}
public void glGetBooleanv(int arg0,byte[] arg1,int arg2)
{
downstreamGL2ES2.glGetBooleanv(arg0,arg1,arg2);
}
public void glPointParameterfv(int arg0,float[] arg1,int arg2)
{
prologFixedFuncHook.glPointParameterfv(arg0,arg1,arg2);
}
public void glOrthof(float arg0,float arg1,float arg2,float arg3,float arg4,float arg5)
{
prologFixedFuncHook.glOrthof(arg0,arg1,arg2,arg3,arg4,arg5);
}
public void glGetIntegerv(int arg0,java.nio.IntBuffer arg1)
{
prologFixedFuncHook.glGetIntegerv(arg0,arg1);
}
public void glGetBooleanv(int arg0,java.nio.ByteBuffer arg1)
{
downstreamGL2ES2.glGetBooleanv(arg0,arg1);
}
public void glSampleCoverage(float arg0,boolean arg1)
{
downstreamGL2ES2.glSampleCoverage(arg0,arg1);
}
public void glGetRenderbufferParameteriv(int arg0,int arg1,int[] arg2,int arg3)
{
downstreamGL2ES2.glGetRenderbufferParameteriv(arg0,arg1,arg2,arg3);
}
public void glReadnPixels(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,java.nio.Buffer arg7)
{
downstreamGL2ES2.glReadnPixels(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7);
}
public void glLightModelfv(int arg0,float[] arg1,int arg2)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glLightModelfv("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+"<[F>"+", "+" 0x"+Integer.toHexString(arg2).toUpperCase()+")"); }
}
public void glTexGenfv(int arg0,int arg1,java.nio.FloatBuffer arg2)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glTexGenfv("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" 0x"+Integer.toHexString(arg1).toUpperCase()+", "+" "+arg2+")"); }
}
public void glGetTexEnviv(int arg0,int arg1,int[] arg2,int arg3)
{
prologFixedFuncHook.glGetTexEnviv(arg0,arg1,arg2,arg3);
}
public void glDeleteTextures(int arg0,java.nio.IntBuffer arg1)
{
downstreamGL2ES2.glDeleteTextures(arg0,arg1);
}
public void glTexImage2D(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,int arg7,java.nio.Buffer arg8)
{
prologFixedFuncHook.glTexImage2D(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
}
public void glGenFramebuffers(int arg0,java.nio.IntBuffer arg1)
{
downstreamGL2ES2.glGenFramebuffers(arg0,arg1);
}
public void glFogfv(int arg0,java.nio.FloatBuffer arg1)
{
if(DEBUG) { System.out.println("WARNING: No prolog, no downstream, empty: "+ "glFogfv("+" 0x"+Integer.toHexString(arg0).toUpperCase()+", "+" "+arg1+")"); }
}
public void glHint(int arg0,int arg1)
{
downstreamGL2ES2.glHint(arg0,arg1);
}
public void glTexStorage3D(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5)
{
downstreamGL2ES2.glTexStorage3D(arg0,arg1,arg2,arg3,arg4,arg5);
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("FixedFuncImpl [ implementing javax.media.opengl.GL2ES1,\n\t");
sb.append(" prolog: "+prologFixedFuncHook.toString()+",\n\t");
sb.append(" downstream: "+downstreamGL2ES2.toString()+"\n\t]");
return sb.toString();
}
private FixedFuncHook prologFixedFuncHook;
private GL2ES2 downstreamGL2ES2;
} // end class FixedFuncImpl