public class GLDebug
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
createProxy(GL, Object, Class[])
 and extends them with the Error Checking in checkError().checkError() call.checkError() for GL.glGetError(), it doesn't make sense.| Modifier and Type | Field and Description | 
|---|---|
protected GL | 
gl  | 
protected java.lang.reflect.Method | 
methodGlGetError  | 
protected java.lang.Object | 
obj  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
checkError()  | 
static java.lang.Object | 
createProxy(GL gl,
           java.lang.Object obj,
           java.lang.Class<?>... implementedInterfaces)
Creates a debug-proxied object, which will call  
GL.glGetError() after every method invocation and throw
 a RendererException if there was a GL Error. | 
protected java.lang.String | 
decodeError(int err)  | 
java.lang.Object | 
invoke(java.lang.Object proxy,
      java.lang.reflect.Method method,
      java.lang.Object[] args)  | 
protected java.lang.Object obj
protected GL gl
protected java.lang.reflect.Method methodGlGetError
protected java.lang.String decodeError(int err)
protected void checkError()
public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwablepublic static java.lang.Object createProxy(GL gl, java.lang.Object obj, java.lang.Class<?>... implementedInterfaces)
GL.glGetError() after every method invocation and throw
 a RendererException if there was a GL Error.gl - The GL Context, required to call GL.glGetError()obj - The object which methods will be proxiedimplementedInterfaces - The interfaces/class this object implements