public static Object createDesktopGlTracer(Object glInterface, Class<?> ... glInterfaceClasses) {
        IntMap<String> constMap = generateConstantMap(GL2.class, GL3.class, GL4.class, GLFbo.class, GLExt.class);
        return Proxy.newProxyInstance(glInterface.getClass().getClassLoader(),
                                      glInterfaceClasses, 
                                      new GLTracer(glInterface, constMap));
    }
Creates a tracer implementation that wraps OpenGL 2+.

@param glInterface OGL object to wrap
@param glInterfaceClasses The interface(s) to implement
@return A tracer that implements the given interface
jme3-core/src/main/java/com/jme3/renderer/opengl/GLTracer.java