Top Description Inners Constructors Methods
org.lwjgl.opengl

public abstract Class GLDebugMessageARBCallback

extends Callback
implements GLDebugMessageARBCallbackI
Class Inheritance
All Implemented Interfaces
org.lwjgl.opengl.GLDebugMessageARBCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.opengl.GLDebugMessageARBCallback.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Instances of this class may be passed to the DebugMessageCallbackARB method.

Type


void (*invoke) (
    GLenum source,
    GLenum type,
    GLuint id,
    GLenum severity,
    GLsizei length,
    GLchar const *message,
    void const *userParam
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
protected
pack-priv
GLDebugMessageARBCallback(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static GLDebugMessageARBCallback

Returns:

the new GLDebugMessageARBCallback
create
(long functionPointer)

Creates a GLDebugMessageARBCallback instance from the specified function pointer.

public static GLDebugMessageARBCallback
create(GLDebugMessageARBCallbackI instance)

Creates a GLDebugMessageARBCallback instance that delegates to the specified GLDebugMessageARBCallbackI instance.

public static GLDebugMessageARBCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

public static String

Returns:

the message as a String
getMessage
(int
the GLDebugMessageARBCallback length argument
length
,
long
the GLDebugMessageARBCallback message argument
message
)

Converts the specified GLDebugMessageARBCallback arguments to a String.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

GLDebugMessageARBCallbackback to summary
protected GLDebugMessageARBCallback()
GLDebugMessageARBCallbackback to summary
pack-priv GLDebugMessageARBCallback(long functionPointer)

Method Detail

createback to summary
public static GLDebugMessageARBCallback create(long functionPointer)

Creates a GLDebugMessageARBCallback instance from the specified function pointer.

Returns:GLDebugMessageARBCallback

the new GLDebugMessageARBCallback

createback to summary
public static GLDebugMessageARBCallback create(GLDebugMessageARBCallbackI instance)

Creates a GLDebugMessageARBCallback instance that delegates to the specified GLDebugMessageARBCallbackI instance.

createSafeback to summary
public static GLDebugMessageARBCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
getMessageback to summary
public static String getMessage(int length, long message)

Converts the specified GLDebugMessageARBCallback arguments to a String.

This method may only be used inside a GLDebugMessageARBCallback invocation.

Parameters
length:int

the GLDebugMessageARBCallback length argument

message:long

the GLDebugMessageARBCallback message argument

Returns:String

the message as a String

org.lwjgl.opengl back to summary

private final Class GLDebugMessageARBCallback.Container

extends GLDebugMessageARBCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final GLDebugMessageARBCallbackI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, GLDebugMessageARBCallbackI delegate)

Method Summary

Modifier and TypeMethod and Description
public void
invoke(int
the message source
source
,
int
the message type
type
,
int
the message ID
id
,
int
the message severity
severity
,
int
the message length, excluding the null-terminator
length
,
long
a pointer to the message string representation
message
,
long
the user-specified value that was passed when calling DebugMessageCallbackARB
userParam
)

Implements org.lwjgl.opengl.GLDebugMessageARBCallbackI.invoke.

Will be called when a debug message is generated.
Inherited from org.lwjgl.opengl.GLDebugMessageARBCallback:
createcreatecreateSafegetMessage

Field Detail

delegateback to summary
private final GLDebugMessageARBCallbackI delegate

Constructor Detail

Containerback to summary
pack-priv Container(long functionPointer, GLDebugMessageARBCallbackI delegate)

Method Detail

invokeback to summary
public void invoke(int source, int type, int id, int severity, int length, long message, long userParam)

Implements org.lwjgl.opengl.GLDebugMessageARBCallbackI.invoke.

Doc from org.lwjgl.opengl.GLDebugMessageARBCallbackI.invoke.

Will be called when a debug message is generated.

Parameters
source:int

the message source

type:int

the message type

id:int

the message ID

severity:int

the message severity

length:int

the message length, excluding the null-terminator

message:long

a pointer to the message string representation

userParam:long

the user-specified value that was passed when calling DebugMessageCallbackARB

Annotations
@Override