Top Description Inners Fields Constructors Methods
org.lwjgl.opengles

public final Class KHRDebugCallback

extends PointerWrapperAbstract
Class Inheritance
Imports
org.lwjgl.PointerWrapperAbstract

Instances of this class are needed to use the callback functionality of the KHR_debug extension. Users of this class may provide implementations of the Handler interface to receive notifications. The same Handler instance may be used by different contexts but it is not recommended. Handler notifications are synchronized.
Author
Spasi

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
KHRDebugCallback.Handler

Implementations of this interface can be used to receive ARB_debug_output notifications.

Field Summary

Modifier and TypeField and Description
private static final long
private static final int
GL_DEBUG_SEVERITY_HIGH

Severity levels.

private static final int
GL_DEBUG_SEVERITY_LOW

Severity levels.

private static final int
GL_DEBUG_SEVERITY_MEDIUM

Severity levels.

private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private final KHRDebugCallback.Handler
Inherited from org.lwjgl.PointerWrapperAbstract:
pointer

Constructor Summary

AccessConstructor and Description
public
KHRDebugCallback()

Creates an KHRebugCallback with a default callback handler.

public
KHRDebugCallback(final KHRDebugCallback.Handler
the callback handler
handler
)

Creates an ARBDebugOutputCallback with the specified callback handler.

Method Summary

Modifier and TypeMethod and Description
pack-priv KHRDebugCallback.Handler
Inherited from org.lwjgl.PointerWrapperAbstract:
checkValidequalsgetPointerhashCodeisValidtoString

Field Detail

CALLBACK_POINTERback to summary
private static final long CALLBACK_POINTER
GL_DEBUG_SEVERITY_HIGHback to summary
private static final int GL_DEBUG_SEVERITY_HIGH

Severity levels.

GL_DEBUG_SEVERITY_LOWback to summary
private static final int GL_DEBUG_SEVERITY_LOW

Severity levels.

GL_DEBUG_SEVERITY_MEDIUMback to summary
private static final int GL_DEBUG_SEVERITY_MEDIUM

Severity levels.

GL_DEBUG_SEVERITY_NOTIFICATIONback to summary
private static final int GL_DEBUG_SEVERITY_NOTIFICATION

Severity levels.

GL_DEBUG_SOURCE_APIback to summary
private static final int GL_DEBUG_SOURCE_API

Sources.

GL_DEBUG_SOURCE_APPLICATIONback to summary
private static final int GL_DEBUG_SOURCE_APPLICATION

Sources.

GL_DEBUG_SOURCE_OTHERback to summary
private static final int GL_DEBUG_SOURCE_OTHER

Sources.

GL_DEBUG_SOURCE_SHADER_COMPILERback to summary
private static final int GL_DEBUG_SOURCE_SHADER_COMPILER

Sources.

GL_DEBUG_SOURCE_THIRD_PARTYback to summary
private static final int GL_DEBUG_SOURCE_THIRD_PARTY

Sources.

GL_DEBUG_SOURCE_WINDOW_SYSTEMback to summary
private static final int GL_DEBUG_SOURCE_WINDOW_SYSTEM

Sources.

GL_DEBUG_TYPE_DEPRECATED_BEHAVIORback to summary
private static final int GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR

Types.

GL_DEBUG_TYPE_ERRORback to summary
private static final int GL_DEBUG_TYPE_ERROR

Types.

GL_DEBUG_TYPE_MARKERback to summary
private static final int GL_DEBUG_TYPE_MARKER

Types.

GL_DEBUG_TYPE_OTHERback to summary
private static final int GL_DEBUG_TYPE_OTHER

Types.

GL_DEBUG_TYPE_PERFORMANCEback to summary
private static final int GL_DEBUG_TYPE_PERFORMANCE

Types.

GL_DEBUG_TYPE_PORTABILITYback to summary
private static final int GL_DEBUG_TYPE_PORTABILITY

Types.

GL_DEBUG_TYPE_UNDEFINED_BEHAVIORback to summary
private static final int GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR

Types.

handlerback to summary
private final KHRDebugCallback.Handler handler

Constructor Detail

KHRDebugCallbackback to summary
public KHRDebugCallback()

Creates an KHRebugCallback with a default callback handler. The default handler will simply print the message on System.err.

KHRDebugCallbackback to summary
public KHRDebugCallback(final KHRDebugCallback.Handler handler)

Creates an ARBDebugOutputCallback with the specified callback handler. The handler's handleMessage method will be called whenever debug output is generated by the GL.

Parameters
handler:KHRDebugCallback.Handler

the callback handler

Method Detail

getHandlerback to summary
pack-priv KHRDebugCallback.Handler getHandler()
org.lwjgl.opengles back to summary

public Interface KHRDebugCallback.Handler


Implementations of this interface can be used to receive ARB_debug_output notifications.

Method Summary

Modifier and TypeMethod and Description
public void
handleMessage(int
the message source
source
,
int
the message type
type
,
int
the message ID
id
,
int
the message severity
severity
,
String
the string representation of the message.
message
)

This method will be called when an ARB_debug_output message is generated.

Method Detail

handleMessageback to summary
public void handleMessage(int source, int type, int id, int severity, String message)

This method will be called when an ARB_debug_output message is generated.

Parameters
source:int

the message source

type:int

the message type

id:int

the message ID

severity:int

the message severity

message:String

the string representation of the message.