Jogamp
Add unified support for GL_ARB_debug_output and GL_AMD_debug_output.
authorSven Gothel <sgothel@jausoft.com>
Sun, 24 Apr 2011 10:21:36 +0000 (12:21 +0200)
committerSven Gothel <sgothel@jausoft.com>
Sun, 24 Apr 2011 10:21:36 +0000 (12:21 +0200)
commit6c0ad949be979d5fed95a1166d59100f7bf5580f
treed69242fabf1f066d43418612209597616fba6cdd
parentea819ff768d507c37a981c1ab0bdc0cad32c6a87
Add unified support for GL_ARB_debug_output and GL_AMD_debug_output.

If GL_ARB_debug_output is not available, but GL_AMD_debug_output exist, fallback to the latter,
offering generic aliased methods translating the delta (AMD category <-> ARB source/type).

Generic aliased methods reside in GLContext*

Enable/Disable via GLContext and GLAutoDrawable.

To enable the GLDebugOutput feature GLContext.enableGLDebugMessage(true)
or GLContext.setContextCreationFlags(GLContext.CTX_OPTION_DEBUG)
shall be called _before_ context creation via GLContext.makeCurrent()!

In case GLAutoDrawable is being used,
GLAutoDrawable.setContextCreationFlags(GLContext.CTX_OPTION_DEBUG)
shall be issued before context creation via GLContext.makeCurrent()!.

After context creation, the GLDebugOutput feature may be enabled or disabled
at any time using this method.

Verify both unit tests for usability.
21 files changed:
make/build-jogl.xml
make/config/jogl/gl-gl4bc.cfg
make/scripts/tests.sh
src/jogl/classes/javax/media/opengl/GLAutoDrawable.java
src/jogl/classes/javax/media/opengl/GLContext.java
src/jogl/classes/javax/media/opengl/GLDebugListener.java [new file with mode: 0644]
src/jogl/classes/javax/media/opengl/GLDebugMessage.java [new file with mode: 0644]
src/jogl/classes/javax/media/opengl/awt/GLCanvas.java
src/jogl/classes/javax/media/opengl/awt/GLJPanel.java
src/jogl/classes/jogamp/opengl/GLContextImpl.java
src/jogl/classes/jogamp/opengl/GLDebugMessageHandler.java [new file with mode: 0644]
src/jogl/classes/jogamp/opengl/GLPbufferImpl.java
src/jogl/classes/jogamp/opengl/ListenerSyncedImplStub.java [new file with mode: 0644]
src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLContext.java
src/jogl/classes/jogamp/opengl/x11/glx/X11GLXContext.java
src/jogl/native/GLDebugMessageHandler.c [new file with mode: 0644]
src/jogl/native/JoglCommon.c [new file with mode: 0644]
src/jogl/native/JoglCommon.h [new file with mode: 0644]
src/newt/classes/com/jogamp/newt/opengl/GLWindow.java
src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLDebug00NEWT.java [new file with mode: 0644]
src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLDebug01NEWT.java [new file with mode: 0644]
http://JogAmp.org git info: FAQ, tutorial and man pages.