Package org.lwjgl.ovr
Class OVRLogCallback
java.lang.Object
org.lwjgl.system.Callback
org.lwjgl.ovr.OVRLogCallback
- All Implemented Interfaces:
AutoCloseable,OVRLogCallbackI,org.lwjgl.system.CallbackI,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
Instances of this class may be passed to the
LogCallback member of the OVRInitParams struct.
Type
void (*OVRLogCallbackI.invoke(long, int, long)) (
uintptr_t userData,
int level,
char const *message
)-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.ovr.OVRLogCallbackI
CIFFields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Method Summary
Modifier and TypeMethodDescriptionstatic OVRLogCallbackcreate(long functionPointer) Creates aOVRLogCallbackinstance from the specified function pointer.static OVRLogCallbackcreate(OVRLogCallbackI instance) Creates aOVRLogCallbackinstance that delegates to the specifiedOVRLogCallbackIinstance.static OVRLogCallbackcreateSafe(long functionPointer) static StringgetMessage(long message) Converts the specifiedOVRLogCallbackargument to a String.Methods inherited from class org.lwjgl.system.Callback
address, equals, free, free, get, getSafe, hashCode, toStringMethods inherited from interface org.lwjgl.system.CallbackI
addressMethods inherited from interface org.lwjgl.system.NativeResource
closeMethods inherited from interface org.lwjgl.ovr.OVRLogCallbackI
callback, getCallInterface, invoke
-
Method Details
-
create
Creates aOVRLogCallbackinstance from the specified function pointer.- Returns:
- the new
OVRLogCallback
-
createSafe
-
create
Creates aOVRLogCallbackinstance that delegates to the specifiedOVRLogCallbackIinstance. -
getMessage
Converts the specifiedOVRLogCallbackargument to a String.This method may only be used inside a OVRLogCallback invocation.
- Parameters:
message- the OVRLogCallbackmessageargument- Returns:
- the message as a String
-