Top Description Inners Constructors Methods
org.lwjgl.ovr

public abstract Class OVRLogCallback

extends Callback
implements OVRLogCallbackI
Class Inheritance
All Implemented Interfaces
org.lwjgl.ovr.OVRLogCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.ovr.OVRLogCallback.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Instances of this class may be passed to the LogCallback member of the OVRInitParams struct.

Type


void (*invoke) (
    uintptr_t userData,
    int level,
    char const *message
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static OVRLogCallback

Returns:

the new OVRLogCallback
create
(long functionPointer)

Creates a OVRLogCallback instance from the specified function pointer.

public static OVRLogCallback
create(OVRLogCallbackI instance)

Creates a OVRLogCallback instance that delegates to the specified OVRLogCallbackI instance.

public static OVRLogCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

public static String

Returns:

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

Converts the specified OVRLogCallback argument to a String.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

OVRLogCallbackback to summary
protected OVRLogCallback()
OVRLogCallbackback to summary
pack-priv OVRLogCallback(long functionPointer)

Method Detail

createback to summary
public static OVRLogCallback create(long functionPointer)

Creates a OVRLogCallback instance from the specified function pointer.

Returns:OVRLogCallback

the new OVRLogCallback

createback to summary
public static OVRLogCallback create(OVRLogCallbackI instance)

Creates a OVRLogCallback instance that delegates to the specified OVRLogCallbackI instance.

createSafeback to summary
public static OVRLogCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

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

Converts the specified OVRLogCallback argument to a String.

This method may only be used inside a OVRLogCallback invocation.

Parameters
message:long

the OVRLogCallback message argument

Returns:String

the message as a String

org.lwjgl.ovr back to summary

private final Class OVRLogCallback.Container

extends OVRLogCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final OVRLogCallbackI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long
an arbitrary value specified by the user of ovrInitParams
userData
,
int
one of the ovrLogLevel constants
level
,
long
a UTF8-encoded null-terminated string
message
)

Implements org.lwjgl.ovr.OVRLogCallbackI.invoke.

The logging callback.
Inherited from org.lwjgl.ovr.OVRLogCallback:
createcreatecreateSafegetMessage

Field Detail

delegateback to summary
private final OVRLogCallbackI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public void invoke(long userData, int level, long message)

Implements org.lwjgl.ovr.OVRLogCallbackI.invoke.

Doc from org.lwjgl.ovr.OVRLogCallbackI.invoke.

The logging callback.

Parameters
userData:long

an arbitrary value specified by the user of ovrInitParams

level:int

one of the ovrLogLevel constants

message:long

a UTF8-encoded null-terminated string

Annotations
@Override