Login  Register

Re: No glDebugMessageCallback in javax.media.opengl.GL4

Posted by Sven Gothel on Oct 14, 2014; 1:06am
URL: https://forum.jogamp.org/No-glDebugMessageCallback-in-javax-media-opengl-GL4-tp4033318p4033337.html

On 10/14/2014 02:58 AM, ericg [via jogamp] wrote:
> No, it is here:
> https://www.opengl.org/sdk/docs/man/html/glDebugMessageCallback.xhtml.  I am
> more curious than actually really needing this as I do use try catch and log
> errors accordingly.  Perhaps it is because Java does not implement callbacks
> the same way C does?

It is all there, i.e. via our own native -> java callback wrappers,
see
 javax.media.opengl.GLDebugListener;
 javax.media.opengl.GLDebugMessage;

Unit tests:

http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLDebug00NEWT.java;h=50beb8ab937b25c91222490aa17f0fc85b4189f4;hb=HEAD

http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLDebug01NEWT.java;h=74280409217ad40eafd8f15d745c204fc8438d9f;hb=HEAD



signature.asc (828 bytes) Download Attachment