Top Fields Constructors Methods
org.lwjgl.opengl

public final Class KHRDebug

extends Object
Class Inheritance
Imports
org.lwjgl.*, java.nio.*

Field Summary

Modifier and TypeField and Description
public static final int
GL_BUFFER

Tokens accepted or provided by the <identifier> parameters of ObjectLabel and GetObjectLabel:

public static final int
GL_CONTEXT_FLAG_DEBUG_BIT

Returned by GetIntegerv when <pname> is CONTEXT_FLAGS:

public static final int
GL_DEBUG_CALLBACK_FUNCTION

Tokens accepted by the <pname> parameter of GetPointerv:

public static final int
GL_DEBUG_CALLBACK_USER_PARAM

Tokens accepted by the <pname> parameter of GetPointerv:

public static final int
GL_DEBUG_GROUP_STACK_DEPTH

Tokens accepted by the <value> parameters of GetBooleanv, GetIntegerv, GetFloatv, GetDoublev and GetInteger64v:

public static final int
GL_DEBUG_LOGGED_MESSAGES

Tokens accepted by the <value> parameters of GetBooleanv, GetIntegerv, GetFloatv, GetDoublev and GetInteger64v:

public static final int
GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH

Tokens accepted by the <value> parameters of GetBooleanv, GetIntegerv, GetFloatv, GetDoublev and GetInteger64v:

public static final int
GL_DEBUG_OUTPUT

Tokens accepted by the <target> parameters of Enable, Disable, and IsEnabled:

public static final int
GL_DEBUG_OUTPUT_SYNCHRONOUS

Tokens accepted by the <target> parameters of Enable, Disable, and IsEnabled:

public static final int
GL_DEBUG_SEVERITY_HIGH

Tokens accepted or provided by the <severity> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC callback functions, and the <severities> parameter of GetDebugMessageLog:

public static final int
GL_DEBUG_SEVERITY_LOW

Tokens accepted or provided by the <severity> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC callback functions, and the <severities> parameter of GetDebugMessageLog:

public static final int
GL_DEBUG_SEVERITY_MEDIUM

Tokens accepted or provided by the <severity> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC callback functions, and the <severities> parameter of GetDebugMessageLog:

public static final int
GL_DEBUG_SEVERITY_NOTIFICATION

Tokens accepted or provided by the <severity> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC callback functions, and the <severities> parameter of GetDebugMessageLog:

public static final int
GL_DEBUG_SOURCE_API

Tokens accepted or provided by the <source> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <sources> parameter of GetDebugMessageLog:

public static final int
GL_DEBUG_SOURCE_APPLICATION

Tokens accepted or provided by the <source> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <sources> parameter of GetDebugMessageLog:

public static final int
GL_DEBUG_SOURCE_OTHER

Tokens accepted or provided by the <source> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <sources> parameter of GetDebugMessageLog:

public static final int
GL_DEBUG_SOURCE_SHADER_COMPILER

Tokens accepted or provided by the <source> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <sources> parameter of GetDebugMessageLog:

public static final int
GL_DEBUG_SOURCE_THIRD_PARTY

Tokens accepted or provided by the <source> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <sources> parameter of GetDebugMessageLog:

public static final int
GL_DEBUG_SOURCE_WINDOW_SYSTEM

Tokens accepted or provided by the <source> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <sources> parameter of GetDebugMessageLog:

public static final int
GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR

Tokens accepted or provided by the <type> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <types> parameter of GetDebugMessageLog:

public static final int
GL_DEBUG_TYPE_ERROR

Tokens accepted or provided by the <type> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <types> parameter of GetDebugMessageLog:

public static final int
GL_DEBUG_TYPE_MARKER

Tokens accepted or provided by the <type> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <types> parameter of GetDebugMessageLog:

public static final int
GL_DEBUG_TYPE_OTHER

Tokens accepted or provided by the <type> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <types> parameter of GetDebugMessageLog:

public static final int
GL_DEBUG_TYPE_PERFORMANCE

Tokens accepted or provided by the <type> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <types> parameter of GetDebugMessageLog:

public static final int
GL_DEBUG_TYPE_POP_GROUP

Tokens accepted or provided by the <type> parameters of DebugMessageControl and DEBUGPROC, and the <types> parameter of GetDebugMessageLog:

public static final int
GL_DEBUG_TYPE_PORTABILITY

Tokens accepted or provided by the <type> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <types> parameter of GetDebugMessageLog:

public static final int
GL_DEBUG_TYPE_PUSH_GROUP

Tokens accepted or provided by the <type> parameters of DebugMessageControl and DEBUGPROC, and the <types> parameter of GetDebugMessageLog:

public static final int
GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR

Tokens accepted or provided by the <type> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <types> parameter of GetDebugMessageLog:

public static final int
GL_DISPLAY_LIST

Tokens accepted or provided by the <identifier> parameters of ObjectLabel and GetObjectLabel:

public static final int
GL_MAX_DEBUG_GROUP_STACK_DEPTH

Tokens accepted by the <value> parameters of GetBooleanv, GetIntegerv, GetFloatv, GetDoublev and GetInteger64v:

public static final int
GL_MAX_DEBUG_LOGGED_MESSAGES

Tokens accepted by the <value> parameters of GetBooleanv, GetIntegerv, GetFloatv, GetDoublev and GetInteger64v:

public static final int
GL_MAX_DEBUG_MESSAGE_LENGTH

Tokens accepted by the <value> parameters of GetBooleanv, GetIntegerv, GetFloatv, GetDoublev and GetInteger64v:

public static final int
GL_MAX_LABEL_LENGTH

Tokens accepted by the <value> parameters of GetBooleanv, GetIntegerv, GetFloatv, GetDoublev and GetInteger64v:

public static final int
GL_PROGRAM

Tokens accepted or provided by the <identifier> parameters of ObjectLabel and GetObjectLabel:

public static final int
GL_PROGRAM_PIPELINE

Tokens accepted or provided by the <identifier> parameters of ObjectLabel and GetObjectLabel:

public static final int
GL_QUERY

Tokens accepted or provided by the <identifier> parameters of ObjectLabel and GetObjectLabel:

public static final int
GL_SAMPLER

Tokens accepted or provided by the <identifier> parameters of ObjectLabel and GetObjectLabel:

public static final int
GL_SHADER

Tokens accepted or provided by the <identifier> parameters of ObjectLabel and GetObjectLabel:

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
glDebugMessageCallback(KHRDebugCallback
the callback function to use
callback
)

The KHRDebugCallback.Handler implementation passed to this method will be used for KHR_debug messages.

public static void
glDebugMessageControl(int source, int type, int severity, IntBuffer ids, boolean enabled)

public static void
glDebugMessageInsert(int source, int type, int id, int severity, ByteBuffer buf)

public static void
glDebugMessageInsert(int source, int type, int id, int severity, CharSequence buf)

Overloads glDebugMessageInsert.

public static int
glGetDebugMessageLog(int count, IntBuffer sources, IntBuffer types, IntBuffer ids, IntBuffer severities, IntBuffer lengths, ByteBuffer messageLog)

public static void
glGetObjectLabel(int identifier, int name, IntBuffer length, ByteBuffer label)

public static String
glGetObjectLabel(int identifier, int name, int bufSize)

Overloads glGetObjectLabel.

public static void
public static String
glGetObjectPtrLabel(PointerWrapper ptr, int bufSize)

Overloads glGetObjectPtrLabel.

public static void
glObjectLabel(int identifier, int name, ByteBuffer label)

public static void
glObjectLabel(int identifier, int name, CharSequence label)

Overloads glObjectLabel.

public static void
public static void
glObjectPtrLabel(PointerWrapper ptr, CharSequence label)

Overloads glObjectPtrLabel.

public static void
public static void
glPushDebugGroup(int source, int id, ByteBuffer message)

public static void
glPushDebugGroup(int source, int id, CharSequence message)

Overloads glPushDebugGroup.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_BUFFERback to summary
public static final int GL_BUFFER

Tokens accepted or provided by the <identifier> parameters of ObjectLabel and GetObjectLabel:

GL_CONTEXT_FLAG_DEBUG_BITback to summary
public static final int GL_CONTEXT_FLAG_DEBUG_BIT

Returned by GetIntegerv when <pname> is CONTEXT_FLAGS:

GL_DEBUG_CALLBACK_FUNCTIONback to summary
public static final int GL_DEBUG_CALLBACK_FUNCTION

Tokens accepted by the <pname> parameter of GetPointerv:

GL_DEBUG_CALLBACK_USER_PARAMback to summary
public static final int GL_DEBUG_CALLBACK_USER_PARAM

Tokens accepted by the <pname> parameter of GetPointerv:

GL_DEBUG_GROUP_STACK_DEPTHback to summary
public static final int GL_DEBUG_GROUP_STACK_DEPTH

Tokens accepted by the <value> parameters of GetBooleanv, GetIntegerv, GetFloatv, GetDoublev and GetInteger64v:

GL_DEBUG_LOGGED_MESSAGESback to summary
public static final int GL_DEBUG_LOGGED_MESSAGES

Tokens accepted by the <value> parameters of GetBooleanv, GetIntegerv, GetFloatv, GetDoublev and GetInteger64v:

GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTHback to summary
public static final int GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH

Tokens accepted by the <value> parameters of GetBooleanv, GetIntegerv, GetFloatv, GetDoublev and GetInteger64v:

GL_DEBUG_OUTPUTback to summary
public static final int GL_DEBUG_OUTPUT

Tokens accepted by the <target> parameters of Enable, Disable, and IsEnabled:

GL_DEBUG_OUTPUT_SYNCHRONOUSback to summary
public static final int GL_DEBUG_OUTPUT_SYNCHRONOUS

Tokens accepted by the <target> parameters of Enable, Disable, and IsEnabled:

GL_DEBUG_SEVERITY_HIGHback to summary
public static final int GL_DEBUG_SEVERITY_HIGH

Tokens accepted or provided by the <severity> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC callback functions, and the <severities> parameter of GetDebugMessageLog:

GL_DEBUG_SEVERITY_LOWback to summary
public static final int GL_DEBUG_SEVERITY_LOW

Tokens accepted or provided by the <severity> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC callback functions, and the <severities> parameter of GetDebugMessageLog:

GL_DEBUG_SEVERITY_MEDIUMback to summary
public static final int GL_DEBUG_SEVERITY_MEDIUM

Tokens accepted or provided by the <severity> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC callback functions, and the <severities> parameter of GetDebugMessageLog:

GL_DEBUG_SEVERITY_NOTIFICATIONback to summary
public static final int GL_DEBUG_SEVERITY_NOTIFICATION

Tokens accepted or provided by the <severity> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC callback functions, and the <severities> parameter of GetDebugMessageLog:

GL_DEBUG_SOURCE_APIback to summary
public static final int GL_DEBUG_SOURCE_API

Tokens accepted or provided by the <source> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <sources> parameter of GetDebugMessageLog:

GL_DEBUG_SOURCE_APPLICATIONback to summary
public static final int GL_DEBUG_SOURCE_APPLICATION

Tokens accepted or provided by the <source> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <sources> parameter of GetDebugMessageLog:

GL_DEBUG_SOURCE_OTHERback to summary
public static final int GL_DEBUG_SOURCE_OTHER

Tokens accepted or provided by the <source> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <sources> parameter of GetDebugMessageLog:

GL_DEBUG_SOURCE_SHADER_COMPILERback to summary
public static final int GL_DEBUG_SOURCE_SHADER_COMPILER

Tokens accepted or provided by the <source> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <sources> parameter of GetDebugMessageLog:

GL_DEBUG_SOURCE_THIRD_PARTYback to summary
public static final int GL_DEBUG_SOURCE_THIRD_PARTY

Tokens accepted or provided by the <source> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <sources> parameter of GetDebugMessageLog:

GL_DEBUG_SOURCE_WINDOW_SYSTEMback to summary
public static final int GL_DEBUG_SOURCE_WINDOW_SYSTEM

Tokens accepted or provided by the <source> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <sources> parameter of GetDebugMessageLog:

GL_DEBUG_TYPE_DEPRECATED_BEHAVIORback to summary
public static final int GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR

Tokens accepted or provided by the <type> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <types> parameter of GetDebugMessageLog:

GL_DEBUG_TYPE_ERRORback to summary
public static final int GL_DEBUG_TYPE_ERROR

Tokens accepted or provided by the <type> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <types> parameter of GetDebugMessageLog:

GL_DEBUG_TYPE_MARKERback to summary
public static final int GL_DEBUG_TYPE_MARKER

Tokens accepted or provided by the <type> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <types> parameter of GetDebugMessageLog:

GL_DEBUG_TYPE_OTHERback to summary
public static final int GL_DEBUG_TYPE_OTHER

Tokens accepted or provided by the <type> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <types> parameter of GetDebugMessageLog:

GL_DEBUG_TYPE_PERFORMANCEback to summary
public static final int GL_DEBUG_TYPE_PERFORMANCE

Tokens accepted or provided by the <type> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <types> parameter of GetDebugMessageLog:

GL_DEBUG_TYPE_POP_GROUPback to summary
public static final int GL_DEBUG_TYPE_POP_GROUP

Tokens accepted or provided by the <type> parameters of DebugMessageControl and DEBUGPROC, and the <types> parameter of GetDebugMessageLog:

GL_DEBUG_TYPE_PORTABILITYback to summary
public static final int GL_DEBUG_TYPE_PORTABILITY

Tokens accepted or provided by the <type> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <types> parameter of GetDebugMessageLog:

GL_DEBUG_TYPE_PUSH_GROUPback to summary
public static final int GL_DEBUG_TYPE_PUSH_GROUP

Tokens accepted or provided by the <type> parameters of DebugMessageControl and DEBUGPROC, and the <types> parameter of GetDebugMessageLog:

GL_DEBUG_TYPE_UNDEFINED_BEHAVIORback to summary
public static final int GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR

Tokens accepted or provided by the <type> parameters of DebugMessageControl, DebugMessageInsert and DEBUGPROC, and the <types> parameter of GetDebugMessageLog:

GL_DISPLAY_LISTback to summary
public static final int GL_DISPLAY_LIST

Tokens accepted or provided by the <identifier> parameters of ObjectLabel and GetObjectLabel:

GL_MAX_DEBUG_GROUP_STACK_DEPTHback to summary
public static final int GL_MAX_DEBUG_GROUP_STACK_DEPTH

Tokens accepted by the <value> parameters of GetBooleanv, GetIntegerv, GetFloatv, GetDoublev and GetInteger64v:

GL_MAX_DEBUG_LOGGED_MESSAGESback to summary
public static final int GL_MAX_DEBUG_LOGGED_MESSAGES

Tokens accepted by the <value> parameters of GetBooleanv, GetIntegerv, GetFloatv, GetDoublev and GetInteger64v:

GL_MAX_DEBUG_MESSAGE_LENGTHback to summary
public static final int GL_MAX_DEBUG_MESSAGE_LENGTH

Tokens accepted by the <value> parameters of GetBooleanv, GetIntegerv, GetFloatv, GetDoublev and GetInteger64v:

GL_MAX_LABEL_LENGTHback to summary
public static final int GL_MAX_LABEL_LENGTH

Tokens accepted by the <value> parameters of GetBooleanv, GetIntegerv, GetFloatv, GetDoublev and GetInteger64v:

GL_PROGRAMback to summary
public static final int GL_PROGRAM

Tokens accepted or provided by the <identifier> parameters of ObjectLabel and GetObjectLabel:

GL_PROGRAM_PIPELINEback to summary
public static final int GL_PROGRAM_PIPELINE

Tokens accepted or provided by the <identifier> parameters of ObjectLabel and GetObjectLabel:

GL_QUERYback to summary
public static final int GL_QUERY

Tokens accepted or provided by the <identifier> parameters of ObjectLabel and GetObjectLabel:

GL_SAMPLERback to summary
public static final int GL_SAMPLER

Tokens accepted or provided by the <identifier> parameters of ObjectLabel and GetObjectLabel:

GL_SHADERback to summary
public static final int GL_SHADER

Tokens accepted or provided by the <identifier> parameters of ObjectLabel and GetObjectLabel:

Constructor Detail

KHRDebugback to summary
private KHRDebug()

Method Detail

glDebugMessageCallbackback to summary
public static void glDebugMessageCallback(KHRDebugCallback callback)

The KHRDebugCallback.Handler implementation passed to this method will be used for KHR_debug messages. If callback is null, any previously registered handler for the current thread will be unregistered and stop receiving messages.

Parameters
callback:KHRDebugCallback

the callback function to use

glDebugMessageControlback to summary
public static void glDebugMessageControl(int source, int type, int severity, IntBuffer ids, boolean enabled)
glDebugMessageInsertback to summary
public static void glDebugMessageInsert(int source, int type, int id, int severity, ByteBuffer buf)
glDebugMessageInsertback to summary
public static void glDebugMessageInsert(int source, int type, int id, int severity, CharSequence buf)

Overloads glDebugMessageInsert.

glGetDebugMessageLogback to summary
public static int glGetDebugMessageLog(int count, IntBuffer sources, IntBuffer types, IntBuffer ids, IntBuffer severities, IntBuffer lengths, ByteBuffer messageLog)
glGetObjectLabelback to summary
public static void glGetObjectLabel(int identifier, int name, IntBuffer length, ByteBuffer label)
glGetObjectLabelback to summary
public static String glGetObjectLabel(int identifier, int name, int bufSize)

Overloads glGetObjectLabel.

glGetObjectPtrLabelback to summary
public static void glGetObjectPtrLabel(PointerWrapper ptr, IntBuffer length, ByteBuffer label)
glGetObjectPtrLabelback to summary
public static String glGetObjectPtrLabel(PointerWrapper ptr, int bufSize)

Overloads glGetObjectPtrLabel.

glObjectLabelback to summary
public static void glObjectLabel(int identifier, int name, ByteBuffer label)
glObjectLabelback to summary
public static void glObjectLabel(int identifier, int name, CharSequence label)

Overloads glObjectLabel.

glObjectPtrLabelback to summary
public static void glObjectPtrLabel(PointerWrapper ptr, ByteBuffer label)
glObjectPtrLabelback to summary
public static void glObjectPtrLabel(PointerWrapper ptr, CharSequence label)

Overloads glObjectPtrLabel.

glPopDebugGroupback to summary
public static void glPopDebugGroup()
glPushDebugGroupback to summary
public static void glPushDebugGroup(int source, int id, ByteBuffer message)
glPushDebugGroupback to summary
public static void glPushDebugGroup(int source, int id, CharSequence message)

Overloads glPushDebugGroup.