Top Description Inners Constructors Methods
org.lwjgl.egl

public abstract Class EGLDebugMessageKHRCallback

extends Callback
implements EGLDebugMessageKHRCallbackI
Class Inheritance
All Implemented Interfaces
org.lwjgl.egl.EGLDebugMessageKHRCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.egl.EGLDebugMessageKHRCallback.Container
Imports
javax.annotation.*, org.lwjgl.system.*

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

Type


void (*invoke) (
    EGLenum error,
    char const *command,
    EGLint messageType,
    EGLLabelKHR threadLabel,
    EGLLabelKHR objectLabel,
    char const *message
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static EGLDebugMessageKHRCallback

Returns:

the new EGLDebugMessageKHRCallback
create
(long functionPointer)

Creates a EGLDebugMessageKHRCallback instance from the specified function pointer.

public static EGLDebugMessageKHRCallback
create(EGLDebugMessageKHRCallbackI instance)

Creates a EGLDebugMessageKHRCallback instance that delegates to the specified EGLDebugMessageKHRCallbackI instance.

public static EGLDebugMessageKHRCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

public static String

Returns:

the command as a String
getCommand
(long
the EGLDebugMessageKHRCallback command argument
command
)

Converts the specified EGLDebugMessageKHRCallback argument to a String.

public static String

Returns:

the message as a String
getMessage
(long
the EGLDebugMessageKHRCallback message argument
message
)

Converts the specified EGLDebugMessageKHRCallback argument to a String.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

EGLDebugMessageKHRCallbackback to summary
protected EGLDebugMessageKHRCallback()
EGLDebugMessageKHRCallbackback to summary
pack-priv EGLDebugMessageKHRCallback(long functionPointer)

Method Detail

createback to summary
public static EGLDebugMessageKHRCallback create(long functionPointer)

Creates a EGLDebugMessageKHRCallback instance from the specified function pointer.

Returns:EGLDebugMessageKHRCallback

the new EGLDebugMessageKHRCallback

createback to summary
public static EGLDebugMessageKHRCallback create(EGLDebugMessageKHRCallbackI instance)

Creates a EGLDebugMessageKHRCallback instance that delegates to the specified EGLDebugMessageKHRCallbackI instance.

createSafeback to summary
public static EGLDebugMessageKHRCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
getCommandback to summary
public static String getCommand(long command)

Converts the specified EGLDebugMessageKHRCallback argument to a String.

This method may only be used inside an EGLDebugMessageKHRCallback invocation.

Parameters
command:long

the EGLDebugMessageKHRCallback command argument

Returns:String

the command as a String

getMessageback to summary
public static String getMessage(long message)

Converts the specified EGLDebugMessageKHRCallback argument to a String.

This method may only be used inside an EGLDebugMessageKHRCallback invocation.

Parameters
message:long

the EGLDebugMessageKHRCallback message argument

Returns:String

the message as a String

org.lwjgl.egl back to summary

private final Class EGLDebugMessageKHRCallback.Container

extends EGLDebugMessageKHRCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final EGLDebugMessageKHRCallbackI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public void
invoke(int
will contain an EGL error code, or SUCCESS, as applicable
error
,
long
will contain a pointer to a string. Example "eglBindApi".
command
,
int
will contain one of the debug message types
messageType
,
long
will contain the label attached to the current thread. The threadLabel will be NULL if not set by the application. If the message is from an internal thread, the label will be NULL.
threadLabel
,
long
will contain the label attached to the primary object of the message; Labels will be NULL if not set by the application. The primary object should be the object the function operates on, see table 13.2 which provides the recommended mapping between functions and their primary object. This objectLabel may be NULL even though the application labeled the object. This is because it is possible an error was raised while executing the command before the primary object was validated, therefore its label can not be included in the callback.
objectLabel
,
long
will contain a platform specific debug string message; This string should provide added information to the application developer regarding the condition that generated the message. The format of a message is implementation-defined, although it should represent a concise description of the event that caused the message to be generated. Message strings can be NULL and should not be assumed otherwise.
message
)

Implements org.lwjgl.egl.EGLDebugMessageKHRCallbackI.invoke.

Will be called when a debug message is generated.
Inherited from org.lwjgl.egl.EGLDebugMessageKHRCallback:
createcreatecreateSafegetCommandgetMessage

Field Detail

delegateback to summary
private final EGLDebugMessageKHRCallbackI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public void invoke(int error, long command, int messageType, long threadLabel, long objectLabel, long message)

Implements org.lwjgl.egl.EGLDebugMessageKHRCallbackI.invoke.

Doc from org.lwjgl.egl.EGLDebugMessageKHRCallbackI.invoke.

Will be called when a debug message is generated.

Parameters
error:int

will contain an EGL error code, or SUCCESS, as applicable

command:long

will contain a pointer to a string. Example "eglBindApi".

messageType:int

will contain one of the debug message types

threadLabel:long

will contain the label attached to the current thread. The threadLabel will be NULL if not set by the application. If the message is from an internal thread, the label will be NULL.

objectLabel:long

will contain the label attached to the primary object of the message; Labels will be NULL if not set by the application. The primary object should be the object the function operates on, see table 13.2 which provides the recommended mapping between functions and their primary object. This objectLabel may be NULL even though the application labeled the object. This is because it is possible an error was raised while executing the command before the primary object was validated, therefore its label can not be included in the callback.

message:long

will contain a platform specific debug string message; This string should provide added information to the application developer regarding the condition that generated the message. The format of a message is implementation-defined, although it should represent a concise description of the event that caused the message to be generated. Message strings can be NULL and should not be assumed otherwise.

Annotations
@Override