Class PanamaGLDebug

java.lang.Object
org.jzy3d.painters.PanamaGLDebug
All Implemented Interfaces:
InvocationHandler

public class PanamaGLDebug extends Object implements 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 Classes
    Modifier and Type
    Class
    Description
    static class 
    An OpenGL error raised by a call.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected panamagl.opengl.GL
     
    protected boolean
     
    protected boolean
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    PanamaGLDebug(panamagl.opengl.GL gl, boolean trace)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static panamagl.opengl.GL
    debug(panamagl.opengl.GL gl)
    Return a GL checking errors after each call to the given GL.
    invoke(Object proxy, Method method, Object[] args)
     
    static panamagl.opengl.GL
    trace(panamagl.opengl.GL gl)
    Return a GL printing each call and checking errors after each call.
    protected static panamagl.opengl.GL
    wrap(panamagl.opengl.GL gl, boolean trace)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 a GL checking errors after each call to the given GL.
    • trace

      public static panamagl.opengl.GL trace(panamagl.opengl.GL gl)
      Return a GL printing each call and checking errors after each call.
    • wrap

      protected static panamagl.opengl.GL wrap(panamagl.opengl.GL gl, boolean trace)
    • invoke

      public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
      Specified by:
      invoke in interface InvocationHandler
      Throws:
      Throwable