javax.media.opengl.DebugGLES3 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jogl-all Show documentation
Show all versions of jogl-all Show documentation
Java™ Binding for the OpenGL® API
package javax.media.opengl;
import java.io.*;
import javax.media.opengl.*;
import com.jogamp.gluegen.runtime.*;
import java.nio.*;
import javax.media.opengl.GLES3;
import javax.media.opengl.GL4ES3;
import javax.media.opengl.GLES2;
/**
*
* Composable pipeline which wraps an underlying {@link GL} implementation,
* providing error checking after each OpenGL method call. If an error occurs,
* causes a {@link GLException} to be thrown at exactly the point of failure.
*
*
* Sample code which installs this pipeline:
*
* gl = drawable.setGL(new DebugGL(drawable.getGL()));
*
* For automatic instantiation see {@link GLPipelineFactory#create(String, Class, GL, Object[])}
*
*/
public class DebugGLES3 implements javax.media.opengl.GLES2, javax.media.opengl.GL4ES3, javax.media.opengl.GLES3{
public static final boolean DEBUG = jogamp.opengl.Debug.debug("DebugGLES3");
public DebugGLES3(GLES3 downstreamGLES3)
{
if (downstreamGLES3 == null) {
throw new IllegalArgumentException("null downstreamGLES3");
}
this.downstreamGLES3 = downstreamGLES3;
// Fetch GLContext object for better error checking (if possible)
_context = downstreamGLES3.getContext();
}
@Override
public final GL getDownstreamGL() throws GLException {
return downstreamGLES3;
}
@Override
public int getBoundBuffer(int arg0)
{
return downstreamGLES3.getBoundBuffer(arg0);
}
@Override
public int getBoundFramebuffer(int arg0)
{
return downstreamGLES3.getBoundFramebuffer(arg0);
}
@Override
public javax.media.opengl.GLBufferStorage getBufferStorage(int arg0)
{
return downstreamGLES3.getBufferStorage(arg0);
}
@Override
public javax.media.opengl.GLContext getContext()
{
return downstreamGLES3.getContext();
}
@Override
public int getDefaultDrawFramebuffer()
{
return downstreamGLES3.getDefaultDrawFramebuffer();
}
@Override
public int getDefaultReadBuffer()
{
return downstreamGLES3.getDefaultReadBuffer();
}
@Override
public int getDefaultReadFramebuffer()
{
return downstreamGLES3.getDefaultReadFramebuffer();
}
@Override
public java.lang.Object getExtension(java.lang.String arg0)
{
return downstreamGLES3.getExtension(arg0);
}
@Override
public javax.media.opengl.GL getGL()
{
return this;
}
@Override
public javax.media.opengl.GL2 getGL2()
{
throw new GLException("Not a GL2 implementation");
}
@Override
public javax.media.opengl.GL2ES1 getGL2ES1()
{
throw new GLException("Not a GL2ES1 implementation");
}
@Override
public javax.media.opengl.GL2ES2 getGL2ES2()
{
if( isGL2ES2() ) { return this; }
throw new GLException("Not a GL2ES2 implementation");
}
@Override
public javax.media.opengl.GL2ES3 getGL2ES3()
{
if( isGL2ES3() ) { return this; }
throw new GLException("Not a GL2ES3 implementation");
}
@Override
public javax.media.opengl.GL2GL3 getGL2GL3()
{
throw new GLException("Not a GL2GL3 implementation");
}
@Override
public javax.media.opengl.GL3 getGL3()
{
throw new GLException("Not a GL3 implementation");
}
@Override
public javax.media.opengl.GL3ES3 getGL3ES3()
{
if( isGL3ES3() ) { return this; }
throw new GLException("Not a GL3ES3 implementation");
}
@Override
public javax.media.opengl.GL3bc getGL3bc()
{
throw new GLException("Not a GL3bc implementation");
}
@Override
public javax.media.opengl.GL4 getGL4()
{
throw new GLException("Not a GL4 implementation");
}
@Override
public javax.media.opengl.GL4ES3 getGL4ES3()
{
if( isGL4ES3() ) { return this; }
throw new GLException("Not a GL4ES3 implementation");
}
@Override
public javax.media.opengl.GL4bc getGL4bc()
{
throw new GLException("Not a GL4bc implementation");
}
@Override
public javax.media.opengl.GLES1 getGLES1()
{
throw new GLException("Not a GLES1 implementation");
}
@Override
public javax.media.opengl.GLES2 getGLES2()
{
if( isGLES2() ) { return this; }
throw new GLException("Not a GLES2 implementation");
}
@Override
public javax.media.opengl.GLES3 getGLES3()
{
if( isGLES3() ) { return this; }
throw new GLException("Not a GLES3 implementation");
}
@Override
public javax.media.opengl.GLProfile getGLProfile()
{
return downstreamGLES3.getGLProfile();
}
@Override
public int getMaxRenderbufferSamples()
{
return downstreamGLES3.getMaxRenderbufferSamples();
}
@Override
public java.lang.Object getPlatformGLExtensions()
{
return downstreamGLES3.getPlatformGLExtensions();
}
@Override
public javax.media.opengl.GL getRootGL()
{
return downstreamGLES3.getRootGL();
}
@Override
public int getSwapInterval()
{
return downstreamGLES3.getSwapInterval();
}
@Override
public void glActiveTexture(int arg0)
{
checkContext();
downstreamGLES3.glActiveTexture(arg0);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X)",
"glActiveTexture", arg0);
}
}
@Override
public void glAlphaFuncQCOM(int arg0,float arg1)
{
checkContext();
downstreamGLES3.glAlphaFuncQCOM(arg0,arg1);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, %s)",
"glAlphaFuncQCOM", arg0, arg1);
}
}
@Override
public void glAttachShader(int arg0,int arg1)
{
checkContext();
downstreamGLES3.glAttachShader(arg0,arg1);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X)",
"glAttachShader", arg0, arg1);
}
}
@Override
public void glBeginPerfMonitorAMD(int arg0)
{
checkContext();
downstreamGLES3.glBeginPerfMonitorAMD(arg0);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X)",
"glBeginPerfMonitorAMD", arg0);
}
}
@Override
public void glBeginQuery(int arg0,int arg1)
{
checkContext();
downstreamGLES3.glBeginQuery(arg0,arg1);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X)",
"glBeginQuery", arg0, arg1);
}
}
@Override
public void glBeginTransformFeedback(int arg0)
{
checkContext();
downstreamGLES3.glBeginTransformFeedback(arg0);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X)",
"glBeginTransformFeedback", arg0);
}
}
@Override
public void glBindAttribLocation(int arg0,int arg1,java.lang.String arg2)
{
checkContext();
downstreamGLES3.glBindAttribLocation(arg0,arg1,arg2);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, %s)",
"glBindAttribLocation", arg0, arg1, arg2);
}
}
@Override
public void glBindBuffer(int arg0,int arg1)
{
checkContext();
downstreamGLES3.glBindBuffer(arg0,arg1);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X)",
"glBindBuffer", arg0, arg1);
}
}
@Override
public void glBindBufferBase(int arg0,int arg1,int arg2)
{
checkContext();
downstreamGLES3.glBindBufferBase(arg0,arg1,arg2);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, 0x%X)",
"glBindBufferBase", arg0, arg1, arg2);
}
}
@Override
public void glBindBufferRange(int arg0,int arg1,int arg2,long arg3,long arg4)
{
checkContext();
downstreamGLES3.glBindBufferRange(arg0,arg1,arg2,arg3,arg4);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, 0x%X, %s, %s)",
"glBindBufferRange", arg0, arg1, arg2, arg3, arg4);
}
}
@Override
public void glBindFramebuffer(int arg0,int arg1)
{
checkContext();
downstreamGLES3.glBindFramebuffer(arg0,arg1);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X)",
"glBindFramebuffer", arg0, arg1);
}
}
@Override
public void glBindRenderbuffer(int arg0,int arg1)
{
checkContext();
downstreamGLES3.glBindRenderbuffer(arg0,arg1);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X)",
"glBindRenderbuffer", arg0, arg1);
}
}
@Override
public void glBindSampler(int arg0,int arg1)
{
checkContext();
downstreamGLES3.glBindSampler(arg0,arg1);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X)",
"glBindSampler", arg0, arg1);
}
}
@Override
public void glBindTexture(int arg0,int arg1)
{
checkContext();
downstreamGLES3.glBindTexture(arg0,arg1);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X)",
"glBindTexture", arg0, arg1);
}
}
@Override
public void glBindTransformFeedback(int arg0,int arg1)
{
checkContext();
downstreamGLES3.glBindTransformFeedback(arg0,arg1);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X)",
"glBindTransformFeedback", arg0, arg1);
}
}
@Override
public void glBindVertexArray(int arg0)
{
checkContext();
downstreamGLES3.glBindVertexArray(arg0);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X)",
"glBindVertexArray", arg0);
}
}
@Override
public void glBindVertexArrayOES(int arg0)
{
checkContext();
downstreamGLES3.glBindVertexArrayOES(arg0);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X)",
"glBindVertexArrayOES", arg0);
}
}
@Override
public void glBlendColor(float arg0,float arg1,float arg2,float arg3)
{
checkContext();
downstreamGLES3.glBlendColor(arg0,arg1,arg2,arg3);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( %s, %s, %s, %s)",
"glBlendColor", arg0, arg1, arg2, arg3);
}
}
@Override
public void glBlendEquation(int arg0)
{
checkContext();
downstreamGLES3.glBlendEquation(arg0);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X)",
"glBlendEquation", arg0);
}
}
@Override
public void glBlendEquationSeparate(int arg0,int arg1)
{
checkContext();
downstreamGLES3.glBlendEquationSeparate(arg0,arg1);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X)",
"glBlendEquationSeparate", arg0, arg1);
}
}
@Override
public void glBlendFunc(int arg0,int arg1)
{
checkContext();
downstreamGLES3.glBlendFunc(arg0,arg1);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X)",
"glBlendFunc", arg0, arg1);
}
}
@Override
public void glBlendFuncSeparate(int arg0,int arg1,int arg2,int arg3)
{
checkContext();
downstreamGLES3.glBlendFuncSeparate(arg0,arg1,arg2,arg3);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, 0x%X, 0x%X)",
"glBlendFuncSeparate", arg0, arg1, arg2, arg3);
}
}
@Override
public void glBlitFramebuffer(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,int arg7,int arg8,int arg9)
{
checkContext();
downstreamGLES3.glBlitFramebuffer(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X)",
"glBlitFramebuffer", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
}
}
@Override
public void glBlitFramebufferANGLE(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,int arg7,int arg8,int arg9)
{
checkContext();
downstreamGLES3.glBlitFramebufferANGLE(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X)",
"glBlitFramebufferANGLE", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
}
}
@Override
public void glBlitFramebufferNV(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,int arg7,int arg8,int arg9)
{
checkContext();
downstreamGLES3.glBlitFramebufferNV(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X)",
"glBlitFramebufferNV", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
}
}
@Override
public void glBufferData(int arg0,long arg1,java.nio.Buffer arg2,int arg3)
{
checkContext();
downstreamGLES3.glBufferData(arg0,arg1,arg2,arg3);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, %s, %s, 0x%X)",
"glBufferData", arg0, arg1, arg2, arg3);
}
}
@Override
public void glBufferSubData(int arg0,long arg1,long arg2,java.nio.Buffer arg3)
{
checkContext();
downstreamGLES3.glBufferSubData(arg0,arg1,arg2,arg3);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, %s, %s, %s)",
"glBufferSubData", arg0, arg1, arg2, arg3);
}
}
@Override
public int glCheckFramebufferStatus(int arg0)
{
checkContext();
int _res = downstreamGLES3.glCheckFramebufferStatus(arg0);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X)",
"glCheckFramebufferStatus", arg0);
}
return _res;
}
@Override
public void glClear(int arg0)
{
checkContext();
downstreamGLES3.glClear(arg0);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X)",
"glClear", arg0);
}
}
@Override
public void glClearBufferfi(int arg0,int arg1,float arg2,int arg3)
{
checkContext();
downstreamGLES3.glClearBufferfi(arg0,arg1,arg2,arg3);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, %s, 0x%X)",
"glClearBufferfi", arg0, arg1, arg2, arg3);
}
}
@Override
public void glClearBufferfv(int arg0,int arg1,java.nio.FloatBuffer arg2)
{
checkContext();
downstreamGLES3.glClearBufferfv(arg0,arg1,arg2);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, %s)",
"glClearBufferfv", arg0, arg1, arg2);
}
}
@Override
public void glClearBufferfv(int arg0,int arg1,float[] arg2,int arg3)
{
checkContext();
downstreamGLES3.glClearBufferfv(arg0,arg1,arg2,arg3);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, <[F>, 0x%X)",
"glClearBufferfv", arg0, arg1, arg3);
}
}
@Override
public void glClearBufferiv(int arg0,int arg1,java.nio.IntBuffer arg2)
{
checkContext();
downstreamGLES3.glClearBufferiv(arg0,arg1,arg2);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, %s)",
"glClearBufferiv", arg0, arg1, arg2);
}
}
@Override
public void glClearBufferiv(int arg0,int arg1,int[] arg2,int arg3)
{
checkContext();
downstreamGLES3.glClearBufferiv(arg0,arg1,arg2,arg3);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, <[I>, 0x%X)",
"glClearBufferiv", arg0, arg1, arg3);
}
}
@Override
public void glClearBufferuiv(int arg0,int arg1,int[] arg2,int arg3)
{
checkContext();
downstreamGLES3.glClearBufferuiv(arg0,arg1,arg2,arg3);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, <[I>, 0x%X)",
"glClearBufferuiv", arg0, arg1, arg3);
}
}
@Override
public void glClearBufferuiv(int arg0,int arg1,java.nio.IntBuffer arg2)
{
checkContext();
downstreamGLES3.glClearBufferuiv(arg0,arg1,arg2);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, %s)",
"glClearBufferuiv", arg0, arg1, arg2);
}
}
@Override
public void glClearColor(float arg0,float arg1,float arg2,float arg3)
{
checkContext();
downstreamGLES3.glClearColor(arg0,arg1,arg2,arg3);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( %s, %s, %s, %s)",
"glClearColor", arg0, arg1, arg2, arg3);
}
}
@Override
public void glClearDepth(double arg0)
{
checkContext();
downstreamGLES3.glClearDepth(arg0);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( %s)",
"glClearDepth", arg0);
}
}
@Override
public void glClearDepthf(float arg0)
{
checkContext();
downstreamGLES3.glClearDepthf(arg0);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( %s)",
"glClearDepthf", arg0);
}
}
@Override
public void glClearStencil(int arg0)
{
checkContext();
downstreamGLES3.glClearStencil(arg0);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X)",
"glClearStencil", arg0);
}
}
@Override
public int glClientWaitSync(long arg0,int arg1,long arg2)
{
checkContext();
int _res = downstreamGLES3.glClientWaitSync(arg0,arg1,arg2);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( %s, 0x%X, %s)",
"glClientWaitSync", arg0, arg1, arg2);
}
return _res;
}
@Override
public void glColorMask(boolean arg0,boolean arg1,boolean arg2,boolean arg3)
{
checkContext();
downstreamGLES3.glColorMask(arg0,arg1,arg2,arg3);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( %s, %s, %s, %s)",
"glColorMask", arg0, arg1, arg2, arg3);
}
}
@Override
public void glCompileShader(int arg0)
{
checkContext();
downstreamGLES3.glCompileShader(arg0);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X)",
"glCompileShader", arg0);
}
}
@Override
public void glCompressedTexImage2D(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,long arg7)
{
checkContext();
downstreamGLES3.glCompressedTexImage2D(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, %s)",
"glCompressedTexImage2D", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
}
}
@Override
public void glCompressedTexImage2D(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,java.nio.Buffer arg7)
{
checkContext();
downstreamGLES3.glCompressedTexImage2D(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, %s)",
"glCompressedTexImage2D", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
}
}
@Override
public void glCompressedTexImage3D(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,int arg7,long arg8)
{
checkContext();
downstreamGLES3.glCompressedTexImage3D(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, %s)",
"glCompressedTexImage3D", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
}
}
@Override
public void glCompressedTexImage3D(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,int arg7,java.nio.Buffer arg8)
{
checkContext();
downstreamGLES3.glCompressedTexImage3D(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, %s)",
"glCompressedTexImage3D", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
}
}
@Override
public void glCompressedTexSubImage2D(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,int arg7,java.nio.Buffer arg8)
{
checkContext();
downstreamGLES3.glCompressedTexSubImage2D(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, %s)",
"glCompressedTexSubImage2D", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
}
}
@Override
public void glCompressedTexSubImage2D(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,int arg7,long arg8)
{
checkContext();
downstreamGLES3.glCompressedTexSubImage2D(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, %s)",
"glCompressedTexSubImage2D", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
}
}
@Override
public void glCompressedTexSubImage3D(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,int arg7,int arg8,int arg9,java.nio.Buffer arg10)
{
checkContext();
downstreamGLES3.glCompressedTexSubImage3D(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, %s)",
"glCompressedTexSubImage3D", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
}
}
@Override
public void glCompressedTexSubImage3D(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,int arg7,int arg8,int arg9,long arg10)
{
checkContext();
downstreamGLES3.glCompressedTexSubImage3D(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, %s)",
"glCompressedTexSubImage3D", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
}
}
@Override
public void glCopyBufferSubData(int arg0,int arg1,long arg2,long arg3,long arg4)
{
checkContext();
downstreamGLES3.glCopyBufferSubData(arg0,arg1,arg2,arg3,arg4);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, %s, %s, %s)",
"glCopyBufferSubData", arg0, arg1, arg2, arg3, arg4);
}
}
@Override
public void glCopyTexImage2D(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,int arg7)
{
checkContext();
downstreamGLES3.glCopyTexImage2D(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X)",
"glCopyTexImage2D", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
}
}
@Override
public void glCopyTexSubImage2D(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,int arg7)
{
checkContext();
downstreamGLES3.glCopyTexSubImage2D(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X)",
"glCopyTexSubImage2D", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
}
}
@Override
public void glCopyTexSubImage3D(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,int arg7,int arg8)
{
checkContext();
downstreamGLES3.glCopyTexSubImage3D(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X, 0x%X)",
"glCopyTexSubImage3D", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
}
}
@Override
public void glCopyTextureLevelsAPPLE(int arg0,int arg1,int arg2,int arg3)
{
checkContext();
downstreamGLES3.glCopyTextureLevelsAPPLE(arg0,arg1,arg2,arg3);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, 0x%X, 0x%X)",
"glCopyTextureLevelsAPPLE", arg0, arg1, arg2, arg3);
}
}
@Override
public void glCoverageMaskNV(boolean arg0)
{
checkContext();
downstreamGLES3.glCoverageMaskNV(arg0);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( %s)",
"glCoverageMaskNV", arg0);
}
}
@Override
public void glCoverageOperationNV(int arg0)
{
checkContext();
downstreamGLES3.glCoverageOperationNV(arg0);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X)",
"glCoverageOperationNV", arg0);
}
}
@Override
public int glCreateProgram()
{
checkContext();
int _res = downstreamGLES3.glCreateProgram();
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s()",
"glCreateProgram");
}
return _res;
}
@Override
public int glCreateShader(int arg0)
{
checkContext();
int _res = downstreamGLES3.glCreateShader(arg0);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X)",
"glCreateShader", arg0);
}
return _res;
}
@Override
public void glCullFace(int arg0)
{
checkContext();
downstreamGLES3.glCullFace(arg0);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X)",
"glCullFace", arg0);
}
}
@Override
public void glDebugMessageControl(int arg0,int arg1,int arg2,int arg3,int[] arg4,int arg5,boolean arg6)
{
checkContext();
downstreamGLES3.glDebugMessageControl(arg0,arg1,arg2,arg3,arg4,arg5,arg6);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, 0x%X, 0x%X, <[I>, 0x%X, %s)",
"glDebugMessageControl", arg0, arg1, arg2, arg3, arg5, arg6);
}
}
@Override
public void glDebugMessageControl(int arg0,int arg1,int arg2,int arg3,java.nio.IntBuffer arg4,boolean arg5)
{
checkContext();
downstreamGLES3.glDebugMessageControl(arg0,arg1,arg2,arg3,arg4,arg5);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, 0x%X, 0x%X, %s, %s)",
"glDebugMessageControl", arg0, arg1, arg2, arg3, arg4, arg5);
}
}
@Override
public void glDebugMessageInsert(int arg0,int arg1,int arg2,int arg3,int arg4,java.lang.String arg5)
{
checkContext();
downstreamGLES3.glDebugMessageInsert(arg0,arg1,arg2,arg3,arg4,arg5);
final int err = checkGLError();
if (err != GL_NO_ERROR) {
writeGLError(err, "%s( 0x%X, 0x%X, 0x%X,