Top Description Inners Fields Constructors Methods
org.lwjgl.opengl

public final Class ARBDebugOutputCallback

extends PointerWrapperAbstract
Class Inheritance
Imports
org.lwjgl.PointerWrapperAbstract

Instances of this class are needed to use the callback functionality of the ARB_debug_output extension. A debug context must be current before creating instances of this class. 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
ARBDebugOutputCallback.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
private static final int
GL_DEBUG_SEVERITY_LOW_ARB

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 final ARBDebugOutputCallback.Handler
Inherited from org.lwjgl.PointerWrapperAbstract:
pointer

Constructor Summary

AccessConstructor and Description
public
ARBDebugOutputCallback()

Creates an ARBDebugOutputCallback with a default callback handler.

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

Creates an ARBDebugOutputCallback with the specified callback handler.

Method Summary

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

Field Detail

CALLBACK_POINTERback to summary
private static final long CALLBACK_POINTER
GL_DEBUG_SEVERITY_HIGH_ARBback to summary
private static final int GL_DEBUG_SEVERITY_HIGH_ARB

Severity levels.

GL_DEBUG_SEVERITY_LOW_ARBback to summary
private static final int GL_DEBUG_SEVERITY_LOW_ARB

Severity levels.

GL_DEBUG_SEVERITY_MEDIUM_ARBback to summary
private static final int GL_DEBUG_SEVERITY_MEDIUM_ARB

Severity levels.

GL_DEBUG_SOURCE_API_ARBback to summary
private static final int GL_DEBUG_SOURCE_API_ARB

Sources.

GL_DEBUG_SOURCE_APPLICATION_ARBback to summary
private static final int GL_DEBUG_SOURCE_APPLICATION_ARB

Sources.

GL_DEBUG_SOURCE_OTHER_ARBback to summary
private static final int GL_DEBUG_SOURCE_OTHER_ARB

Sources.

GL_DEBUG_SOURCE_SHADER_COMPILER_ARBback to summary
private static final int GL_DEBUG_SOURCE_SHADER_COMPILER_ARB

Sources.

GL_DEBUG_SOURCE_THIRD_PARTY_ARBback to summary
private static final int GL_DEBUG_SOURCE_THIRD_PARTY_ARB

Sources.

GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARBback to summary
private static final int GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB

Sources.

GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARBback to summary
private static final int GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB

Types.

GL_DEBUG_TYPE_ERROR_ARBback to summary
private static final int GL_DEBUG_TYPE_ERROR_ARB

Types.

GL_DEBUG_TYPE_OTHER_ARBback to summary
private static final int GL_DEBUG_TYPE_OTHER_ARB

Types.

GL_DEBUG_TYPE_PERFORMANCE_ARBback to summary
private static final int GL_DEBUG_TYPE_PERFORMANCE_ARB

Types.

GL_DEBUG_TYPE_PORTABILITY_ARBback to summary
private static final int GL_DEBUG_TYPE_PORTABILITY_ARB

Types.

GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARBback to summary
private static final int GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB

Types.

handlerback to summary
private final ARBDebugOutputCallback.Handler handler

Constructor Detail

ARBDebugOutputCallbackback to summary
public ARBDebugOutputCallback()

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

ARBDebugOutputCallbackback to summary
public ARBDebugOutputCallback(final ARBDebugOutputCallback.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:ARBDebugOutputCallback.Handler

the callback handler

Method Detail

getHandlerback to summary
pack-priv ARBDebugOutputCallback.Handler getHandler()
org.lwjgl.opengl back to summary

public Interface ARBDebugOutputCallback.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.