Class GLTracer

java.lang.Object
com.jme3.renderer.opengl.GLTracer
All Implemented Interfaces:
InvocationHandler

public final class GLTracer extends Object implements InvocationHandler
Utility class that allows tracing of OpenGL calls generated by the engine.
  • Constructor Details

  • Method Details

    • createGlesTracer

      public static Object createGlesTracer(Object glInterface, Class<?>... glInterfaceClasses)
      Creates a tracer implementation that wraps OpenGL ES 2.
      Parameters:
      glInterface - OGL object to wrap
      glInterfaceClasses - The interface(s) to implement
      Returns:
      A tracer that implements the given interface
    • createDesktopGlTracer

      public static Object createDesktopGlTracer(Object glInterface, Class<?>... glInterfaceClasses)
      Creates a tracer implementation that wraps OpenGL 2+.
      Parameters:
      glInterface - OGL object to wrap
      glInterfaceClasses - The interface(s) to implement
      Returns:
      A tracer that implements the given interface
    • invoke

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