Package org.lwjgl.opengl
Class ARBDebugOutputCallback
- java.lang.Object
-
- org.lwjgl.PointerWrapperAbstract
-
- org.lwjgl.opengl.ARBDebugOutputCallback
-
- All Implemented Interfaces:
PointerWrapper
public final class ARBDebugOutputCallback extends 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 theHandler
interface to receive notifications. The sameHandler
instance may be used by different contexts but it is not recommended. Handler notifications are synchronized.- Author:
- Spasi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ARBDebugOutputCallback.Handler
Implementations of this interface can be used to receive ARB_debug_output notifications.
-
Field Summary
-
Fields inherited from class org.lwjgl.PointerWrapperAbstract
pointer
-
-
Constructor Summary
Constructors Constructor Description ARBDebugOutputCallback()
Creates an ARBDebugOutputCallback with a default callback handler.ARBDebugOutputCallback(ARBDebugOutputCallback.Handler handler)
Creates an ARBDebugOutputCallback with the specified callback handler.
-
Method Summary
-
Methods inherited from class org.lwjgl.PointerWrapperAbstract
checkValid, equals, getPointer, hashCode, isValid, toString
-
-
-
-
Constructor Detail
-
ARBDebugOutputCallback
public ARBDebugOutputCallback()
Creates an ARBDebugOutputCallback with a default callback handler. The default handler will simply print the message on System.err.
-
ARBDebugOutputCallback
public ARBDebugOutputCallback(ARBDebugOutputCallback.Handler handler)
Creates an ARBDebugOutputCallback with the specified callback handler. The handler'shandleMessage
method will be called whenever debug output is generated by the GL.- Parameters:
handler
- the callback handler
-
-