Class PanamaGLDebug
java.lang.Object
org.jzy3d.painters.PanamaGLDebug
- All Implemented Interfaces:
InvocationHandler
Wrap a
GL so that an exception is thrown as soon as a GL call produces an error, as JOGL's
DebugGL does. Optionally print each call.
Errors are checked after each call, except between glBegin and glEnd where glGetError is not
allowed. This makes rendering slower : use it for debugging only.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn OpenGL error raised by a call. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected panamagl.opengl.GLprotected booleanprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic panamagl.opengl.GLdebug(panamagl.opengl.GL gl) Return aGLchecking errors after each call to the given GL.static panamagl.opengl.GLtrace(panamagl.opengl.GL gl) Return aGLprinting each call and checking errors after each call.protected static panamagl.opengl.GLwrap(panamagl.opengl.GL gl, boolean trace)
-
Field Details
-
gl
protected panamagl.opengl.GL gl -
trace
protected boolean trace -
inBeginEnd
protected boolean inBeginEnd
-
-
Constructor Details
-
PanamaGLDebug
protected PanamaGLDebug(panamagl.opengl.GL gl, boolean trace)
-
-
Method Details
-
debug
public static panamagl.opengl.GL debug(panamagl.opengl.GL gl) Return aGLchecking errors after each call to the given GL. -
trace
public static panamagl.opengl.GL trace(panamagl.opengl.GL gl) Return aGLprinting each call and checking errors after each call. -
wrap
protected static panamagl.opengl.GL wrap(panamagl.opengl.GL gl, boolean trace) -
invoke
-