Top Description Inners Fields Constructors Methods
org.lwjgl.opengl

public final Class AMDDebugOutputCallback

extends PointerWrapperAbstract
Class Inheritance
Imports
org.lwjgl.PointerWrapperAbstract

Instances of this class are needed to use the callback functionality of the AMD_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
AMDDebugOutputCallback.Handler

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

Field Summary

Modifier and TypeField and Description
private static final long
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
GL_DEBUG_SEVERITY_LOW_AMD

Severity levels.

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

Constructor Summary

AccessConstructor and Description
public
AMDDebugOutputCallback()

Creates an AMDDebugOutputCallback with a default callback handler.

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

Creates an AMDDebugOutputCallback with the specified callback handler.

Method Summary

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

Field Detail

CALLBACK_POINTERback to summary
private static final long CALLBACK_POINTER
GL_DEBUG_CATEGORY_API_ERROR_AMDback to summary
private static final int GL_DEBUG_CATEGORY_API_ERROR_AMD

Categories

GL_DEBUG_CATEGORY_APPLICATION_AMDback to summary
private static final int GL_DEBUG_CATEGORY_APPLICATION_AMD

Categories

GL_DEBUG_CATEGORY_DEPRECATION_AMDback to summary
private static final int GL_DEBUG_CATEGORY_DEPRECATION_AMD

Categories

GL_DEBUG_CATEGORY_OTHER_AMDback to summary
private static final int GL_DEBUG_CATEGORY_OTHER_AMD

Categories

GL_DEBUG_CATEGORY_PERFORMANCE_AMDback to summary
private static final int GL_DEBUG_CATEGORY_PERFORMANCE_AMD

Categories

GL_DEBUG_CATEGORY_SHADER_COMPILER_AMDback to summary
private static final int GL_DEBUG_CATEGORY_SHADER_COMPILER_AMD

Categories

GL_DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMDback to summary
private static final int GL_DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD

Categories

GL_DEBUG_CATEGORY_WINDOW_SYSTEM_AMDback to summary
private static final int GL_DEBUG_CATEGORY_WINDOW_SYSTEM_AMD

Categories

GL_DEBUG_SEVERITY_HIGH_AMDback to summary
private static final int GL_DEBUG_SEVERITY_HIGH_AMD

Severity levels.

GL_DEBUG_SEVERITY_LOW_AMDback to summary
private static final int GL_DEBUG_SEVERITY_LOW_AMD

Severity levels.

GL_DEBUG_SEVERITY_MEDIUM_AMDback to summary
private static final int GL_DEBUG_SEVERITY_MEDIUM_AMD

Severity levels.

handlerback to summary
private final AMDDebugOutputCallback.Handler handler

Constructor Detail

AMDDebugOutputCallbackback to summary
public AMDDebugOutputCallback()

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

AMDDebugOutputCallbackback to summary
public AMDDebugOutputCallback(final AMDDebugOutputCallback.Handler handler)

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

Parameters
handler:AMDDebugOutputCallback.Handler

the callback handler

Method Detail

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

public Interface AMDDebugOutputCallback.Handler


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

Method Summary

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

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

Method Detail

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

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

Parameters
id:int

the message ID

category:int

the message category

severity:int

the message severity

message:String

the string representation of the message.