Package org.lwjgl.opengl
Class GLDebugMessageCallback
- java.lang.Object
-
- org.lwjgl.system.Callback
-
- org.lwjgl.opengl.GLDebugMessageCallback
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,GLDebugMessageCallbackI
,org.lwjgl.system.CallbackI
,org.lwjgl.system.CallbackI.V
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public abstract class GLDebugMessageCallback extends org.lwjgl.system.Callback implements GLDebugMessageCallbackI
Instances of this class may be passed to theGL43.glDebugMessageCallback(org.lwjgl.opengl.GLDebugMessageCallbackI, long)
andKHRDebug.glDebugMessageCallback(org.lwjgl.opengl.GLDebugMessageCallbackI, long)
methods.Type
void (*) ( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, GLchar const *message, void const *userParam )
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.lwjgl.system.CallbackI
org.lwjgl.system.CallbackI.B, org.lwjgl.system.CallbackI.D, org.lwjgl.system.CallbackI.F, org.lwjgl.system.CallbackI.I, org.lwjgl.system.CallbackI.J, org.lwjgl.system.CallbackI.N, org.lwjgl.system.CallbackI.P, org.lwjgl.system.CallbackI.S, org.lwjgl.system.CallbackI.V, org.lwjgl.system.CallbackI.Z
-
-
Field Summary
-
Fields inherited from interface org.lwjgl.opengl.GLDebugMessageCallbackI
SIGNATURE
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GLDebugMessageCallback
create(long functionPointer)
Creates aGLDebugMessageCallback
instance from the specified function pointer.static GLDebugMessageCallback
create(GLDebugMessageCallbackI instance)
Creates aGLDebugMessageCallback
instance that delegates to the specifiedGLDebugMessageCallbackI
instance.static GLDebugMessageCallback
createSafe(long functionPointer)
static java.lang.String
getMessage(int length, long message)
Converts the specifiedGLDebugMessageCallback
arguments to a String.-
Methods inherited from class org.lwjgl.system.Callback
__stdcall, address, equals, free, free, get, getSafe, hashCode, toString
-
Methods inherited from interface org.lwjgl.opengl.GLDebugMessageCallbackI
callback, getSignature, invoke
-
-
-
-
Method Detail
-
create
public static GLDebugMessageCallback create(long functionPointer)
Creates aGLDebugMessageCallback
instance from the specified function pointer.- Returns:
- the new
GLDebugMessageCallback
-
createSafe
@Nullable public static GLDebugMessageCallback createSafe(long functionPointer)
-
create
public static GLDebugMessageCallback create(GLDebugMessageCallbackI instance)
Creates aGLDebugMessageCallback
instance that delegates to the specifiedGLDebugMessageCallbackI
instance.
-
getMessage
public static java.lang.String getMessage(int length, long message)
Converts the specifiedGLDebugMessageCallback
arguments to a String.This method may only be used inside a GLDebugMessageCallback invocation.
- Parameters:
length
- the GLDebugMessageCallbacklength
argumentmessage
- the GLDebugMessageCallbackmessage
argument- Returns:
- the message as a String
-
-