Difference between revisions of "GL Debug Output"

From JogampWiki
Jump to navigation Jump to search
(Created page with "Test")
 
Line 1: Line 1:
Test
+
'''Debug Output''' is an OpenGL feature that makes [https://www.opengl.org/wiki/Error_Checking Error Checking] from functions easier.
 +
 
 +
In order to get more information about Debug Output, you can read the main opengl [https://www.opengl.org/wiki/Debug_Output wiki page]
 +
 
 +
The difference with plain OpenGL is that in Jogl, if you want to enable Debug Output, you have to do it at the begin, before the context gets created.
 +
 
 +
There are two tests in jogl-demos, that show how you can achieve this:
 +
* [https://github.com/sgothel/jogl/blob/b3ecc88efca2a2f969e1e5a375086148821ee3c5/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLDebug00NEWT.java#L103 TestGLDebug00NEWT]
 +
* [https://github.com/sgothel/jogl/blob/b3ecc88efca2a2f969e1e5a375086148821ee3c5/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLDebug01NEWT.java#L71 TestGLDebug01NEWT]

Revision as of 14:37, 28 January 2016

Debug Output is an OpenGL feature that makes Error Checking from functions easier.

In order to get more information about Debug Output, you can read the main opengl wiki page

The difference with plain OpenGL is that in Jogl, if you want to enable Debug Output, you have to do it at the begin, before the context gets created.

There are two tests in jogl-demos, that show how you can achieve this: