Documented glDebugMessageCallbackAMD.

This commit is contained in:
Ioannis Tsakpinis 2010-05-28 00:08:58 +00:00
parent 21b3c3d818
commit cd5101c2f1
1 changed files with 12 additions and 0 deletions

View File

@ -73,6 +73,18 @@ public interface AMD_debug_output {
@Alternate("glDebugMessageInsertAMD")
void glDebugMessageInsertAMD(@GLenum int category, @GLenum int severity, @GLuint int id, @Constant("buf.length()") @GLsizei int length, CharSequence buf);
/**
* The {@code AMDDebugOutputCallback.Handler} implementation passed to this method will be used for
* AMD_debug_output messages. If callback is null, any previously registered handler for the current
* thread will be unregistered and stop receiving messages.
* <p/>
* The userParam buffer will be passed to the GL, but the current implementation will ignore it and
* never return it to the handler. Instead, users are encouraged to use a custom callback handler
* implentation to store context-specific data.
*
* @param callback the callback function to use
* @param userParam the user-specified data
*/
void glDebugMessageCallbackAMD(@GLpointer(value = "GLDEBUGPROCAMD", canBeNull = true) AMDDebugOutputCallback callback, @Check(canBeNull = true) @GLvoid ByteBuffer userParam);
@GLuint