Top Description Inners Constructors Methods
org.lwjgl.opengles

public abstract Class GLDebugMessageCallback

extends Callback
implements GLDebugMessageCallbackI
Class Inheritance
All Implemented Interfaces
org.lwjgl.opengles.GLDebugMessageCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.opengles.GLDebugMessageCallback.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Instances of this class may be passed to the DebugMessageCallback 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
GLDebugMessageCallback(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static GLDebugMessageCallback

Returns:

the new GLDebugMessageCallback
create
(long functionPointer)

Creates a GLDebugMessageCallback instance from the specified function pointer.

public static GLDebugMessageCallback
create(GLDebugMessageCallbackI instance)

Creates a GLDebugMessageCallback instance that delegates to the specified GLDebugMessageCallbackI instance.

public static GLDebugMessageCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

public static String

Returns:

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

Converts the specified GLDebugMessageCallback arguments to a String.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

GLDebugMessageCallbackback to summary
protected GLDebugMessageCallback()
GLDebugMessageCallbackback to summary
pack-priv GLDebugMessageCallback(long functionPointer)

Method Detail

createback to summary
public static GLDebugMessageCallback create(long functionPointer)

Creates a GLDebugMessageCallback instance from the specified function pointer.

Returns:GLDebugMessageCallback

the new GLDebugMessageCallback

createback to summary
public static GLDebugMessageCallback create(GLDebugMessageCallbackI instance)

Creates a GLDebugMessageCallback instance that delegates to the specified GLDebugMessageCallbackI instance.

createSafeback to summary
public static GLDebugMessageCallback 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 GLDebugMessageCallback arguments to a String.

This method may only be used inside a GLDebugMessageCallback invocation.

Parameters
length:int

the GLDebugMessageCallback length argument

message:long

the GLDebugMessageCallback message argument

Returns:String

the message as a String

org.lwjgl.opengles back to summary

private final Class GLDebugMessageCallback.Container

extends GLDebugMessageCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final GLDebugMessageCallbackI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, GLDebugMessageCallbackI 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 DebugMessageCallback
userParam
)

Implements org.lwjgl.opengles.GLDebugMessageCallbackI.invoke.

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

Field Detail

delegateback to summary
private final GLDebugMessageCallbackI delegate

Constructor Detail

Containerback to summary
pack-priv Container(long functionPointer, GLDebugMessageCallbackI 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.opengles.GLDebugMessageCallbackI.invoke.

Doc from org.lwjgl.opengles.GLDebugMessageCallbackI.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 DebugMessageCallback

Annotations
@Override