Top Description Inners Constructors Methods
org.lwjgl.opengl

public abstract Class GLDebugMessageAMDCallback

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

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

Type


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

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static GLDebugMessageAMDCallback

Returns:

the new GLDebugMessageAMDCallback
create
(long functionPointer)

Creates a GLDebugMessageAMDCallback instance from the specified function pointer.

public static GLDebugMessageAMDCallback
create(GLDebugMessageAMDCallbackI instance)

Creates a GLDebugMessageAMDCallback instance that delegates to the specified GLDebugMessageAMDCallbackI instance.

public static GLDebugMessageAMDCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

public static String

Returns:

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

Converts the specified GLDebugMessageAMDCallback arguments to a String.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

GLDebugMessageAMDCallbackback to summary
protected GLDebugMessageAMDCallback()
GLDebugMessageAMDCallbackback to summary
pack-priv GLDebugMessageAMDCallback(long functionPointer)

Method Detail

createback to summary
public static GLDebugMessageAMDCallback create(long functionPointer)

Creates a GLDebugMessageAMDCallback instance from the specified function pointer.

Returns:GLDebugMessageAMDCallback

the new GLDebugMessageAMDCallback

createback to summary
public static GLDebugMessageAMDCallback create(GLDebugMessageAMDCallbackI instance)

Creates a GLDebugMessageAMDCallback instance that delegates to the specified GLDebugMessageAMDCallbackI instance.

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

This method may only be used inside a GLDebugMessageAMDCallback invocation.

Parameters
length:int

the GLDebugMessageAMDCallback length argument

message:long

the GLDebugMessageAMDCallback message argument

Returns:String

the message as a String

org.lwjgl.opengl back to summary

private final Class GLDebugMessageAMDCallback.Container

extends GLDebugMessageAMDCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final GLDebugMessageAMDCallbackI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public void
invoke(int
the message ID
id
,
int
the message category
category
,
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 DebugMessageCallbackAMD
userParam
)

Implements org.lwjgl.opengl.GLDebugMessageAMDCallbackI.invoke.

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

Field Detail

delegateback to summary
private final GLDebugMessageAMDCallbackI delegate

Constructor Detail

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

Method Detail

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

Implements org.lwjgl.opengl.GLDebugMessageAMDCallbackI.invoke.

Doc from org.lwjgl.opengl.GLDebugMessageAMDCallbackI.invoke.

Will be called when a debug message is generated.

Parameters
id:int

the message ID

category:int

the message category

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 DebugMessageCallbackAMD

Annotations
@Override