Top Description Inners Constructors Methods
org.lwjgl.opengles

public abstract Class GLDebugMessageKHRCallback

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

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

Method Summary

Modifier and TypeMethod and Description
public static GLDebugMessageKHRCallback

Returns:

the new GLDebugMessageKHRCallback
create
(long functionPointer)

Creates a GLDebugMessageKHRCallback instance from the specified function pointer.

public static GLDebugMessageKHRCallback
create(GLDebugMessageKHRCallbackI instance)

Creates a GLDebugMessageKHRCallback instance that delegates to the specified GLDebugMessageKHRCallbackI instance.

public static GLDebugMessageKHRCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

public static String

Returns:

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

Converts the specified GLDebugMessageKHRCallback arguments to a String.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

GLDebugMessageKHRCallbackback to summary
protected GLDebugMessageKHRCallback()
GLDebugMessageKHRCallbackback to summary
pack-priv GLDebugMessageKHRCallback(long functionPointer)

Method Detail

createback to summary
public static GLDebugMessageKHRCallback create(long functionPointer)

Creates a GLDebugMessageKHRCallback instance from the specified function pointer.

Returns:GLDebugMessageKHRCallback

the new GLDebugMessageKHRCallback

createback to summary
public static GLDebugMessageKHRCallback create(GLDebugMessageKHRCallbackI instance)

Creates a GLDebugMessageKHRCallback instance that delegates to the specified GLDebugMessageKHRCallbackI instance.

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

This method may only be used inside a GLDebugMessageKHRCallback invocation.

Parameters
length:int

the GLDebugMessageKHRCallback length argument

message:long

the GLDebugMessageKHRCallback message argument

Returns:String

the message as a String

org.lwjgl.opengles back to summary

private final Class GLDebugMessageKHRCallback.Container

extends GLDebugMessageKHRCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final GLDebugMessageKHRCallbackI

Constructor Summary

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

Implements org.lwjgl.opengles.GLDebugMessageKHRCallbackI.invoke.

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

Field Detail

delegateback to summary
private final GLDebugMessageKHRCallbackI delegate

Constructor Detail

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

Doc from org.lwjgl.opengles.GLDebugMessageKHRCallbackI.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 DebugMessageCallbackKHR

Annotations
@Override