Package org.lwjgl.ovr
Class OVRInitParams
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRInitParams
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class OVRInitParams extends Struct
Parameters forOVR.ovr_Initialize(org.lwjgl.ovr.OVRInitParams)
.Member documentation
Flags
– flags fromovrInitFlags
to override default behavior. Use 0 for the defaults.RequestedMinorVersion
– requests a specific minimum minor version of the LibOVR runtime. Flags must includeOVR.ovrInit_RequestVersion
or this will be ignored andOVRVersion.OVR_MINOR_VERSION
will be used.LogCallback
– user-supplied log callback function, which may be called at any time asynchronously from multiple threads untilOVR.ovr_Shutdown()
completes. UseNULL
to specify no log callback.UserData
– user-supplied data which is passed as-is toLogCallback
. Typically this is used to store an application-specific pointer which is read in the callback function.ConnectionTimeoutMS
– relative number of milliseconds to wait for a connection to the server before failing. Use 0 for the default timeout.
Layout
struct ovrInitParams { uint32_t Flags; uint32_t RequestedMinorVersion; ovrLogCallback LogCallback; uintptr_t UserData; uint32_t ConnectionTimeoutMS; char[4]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
OVRInitParams.Buffer
An array ofOVRInitParams
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description OVRInitParams(java.nio.ByteBuffer container)
Creates aOVRInitParams
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static OVRInitParams
calloc()
Returns a newOVRInitParams
instance allocated withmemCalloc
.static OVRInitParams.Buffer
calloc(int capacity)
Returns a newOVRInitParams.Buffer
instance allocated withmemCalloc
.static OVRInitParams
callocStack()
Returns a newOVRInitParams
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRInitParams.Buffer
callocStack(int capacity)
Returns a newOVRInitParams.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRInitParams.Buffer
callocStack(int capacity, MemoryStack stack)
Returns a newOVRInitParams.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRInitParams
callocStack(MemoryStack stack)
Returns a newOVRInitParams
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
ConnectionTimeoutMS()
Returns the value of theConnectionTimeoutMS
field.OVRInitParams
ConnectionTimeoutMS(int value)
Sets the specified value to theConnectionTimeoutMS
field.static OVRInitParams
create()
Returns a newOVRInitParams
instance allocated withBufferUtils
.static OVRInitParams.Buffer
create(int capacity)
Returns a newOVRInitParams.Buffer
instance allocated withBufferUtils
.static OVRInitParams
create(long address)
Returns a newOVRInitParams
instance for the specified memory address ornull
if the address isNULL
.static OVRInitParams.Buffer
create(long address, int capacity)
Create aOVRInitParams.Buffer
instance at the specified memory.int
Flags()
Returns the value of theFlags
field.OVRInitParams
Flags(int value)
Sets the specified value to theFlags
field.OVRLogCallback
LogCallback()
Returns theOVRLogCallback
instance at theLogCallback
field.OVRInitParams
LogCallback(OVRLogCallbackI value)
Sets the address of the specifiedOVRLogCallbackI
to theLogCallback
field.static OVRInitParams
malloc()
Returns a newOVRInitParams
instance allocated withmemAlloc
.static OVRInitParams.Buffer
malloc(int capacity)
Returns a newOVRInitParams.Buffer
instance allocated withmemAlloc
.static OVRInitParams
mallocStack()
Returns a newOVRInitParams
instance allocated on the thread-localMemoryStack
.static OVRInitParams.Buffer
mallocStack(int capacity)
Returns a newOVRInitParams.Buffer
instance allocated on the thread-localMemoryStack
.static OVRInitParams.Buffer
mallocStack(int capacity, MemoryStack stack)
Returns a newOVRInitParams.Buffer
instance allocated on the specifiedMemoryStack
.static OVRInitParams
mallocStack(MemoryStack stack)
Returns a newOVRInitParams
instance allocated on the specifiedMemoryStack
.OVRInitParams
nset(long struct)
Unsafe version ofset
.int
RequestedMinorVersion()
Returns the value of theRequestedMinorVersion
field.OVRInitParams
RequestedMinorVersion(int value)
Sets the specified value to theRequestedMinorVersion
field.OVRInitParams
set(int Flags, int RequestedMinorVersion, OVRLogCallbackI LogCallback, long UserData, int ConnectionTimeoutMS)
Initializes this struct with the specified values.OVRInitParams
set(OVRInitParams src)
Copies the specified struct data to this struct.int
sizeof()
Returns thesizeof(struct)
.long
UserData()
Returns the value of theUserData
field.OVRInitParams
UserData(long value)
Sets the specified value to theUserData
field.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
OVRInitParams
public OVRInitParams(java.nio.ByteBuffer container)
Creates aOVRInitParams
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
Description copied from class:Struct
Returns thesizeof(struct)
.
-
Flags
public int Flags()
Returns the value of theFlags
field.
-
RequestedMinorVersion
public int RequestedMinorVersion()
Returns the value of theRequestedMinorVersion
field.
-
LogCallback
public OVRLogCallback LogCallback()
Returns theOVRLogCallback
instance at theLogCallback
field.
-
UserData
public long UserData()
Returns the value of theUserData
field.
-
ConnectionTimeoutMS
public int ConnectionTimeoutMS()
Returns the value of theConnectionTimeoutMS
field.
-
Flags
public OVRInitParams Flags(int value)
Sets the specified value to theFlags
field.
-
RequestedMinorVersion
public OVRInitParams RequestedMinorVersion(int value)
Sets the specified value to theRequestedMinorVersion
field.
-
LogCallback
public OVRInitParams LogCallback(OVRLogCallbackI value)
Sets the address of the specifiedOVRLogCallbackI
to theLogCallback
field.
-
UserData
public OVRInitParams UserData(long value)
Sets the specified value to theUserData
field.
-
ConnectionTimeoutMS
public OVRInitParams ConnectionTimeoutMS(int value)
Sets the specified value to theConnectionTimeoutMS
field.
-
set
public OVRInitParams set(int Flags, int RequestedMinorVersion, OVRLogCallbackI LogCallback, long UserData, int ConnectionTimeoutMS)
Initializes this struct with the specified values.
-
nset
public OVRInitParams nset(long struct)
Unsafe version ofset
.
-
set
public OVRInitParams set(OVRInitParams src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static OVRInitParams malloc()
Returns a newOVRInitParams
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static OVRInitParams calloc()
Returns a newOVRInitParams
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static OVRInitParams create()
Returns a newOVRInitParams
instance allocated withBufferUtils
.
-
create
public static OVRInitParams create(long address)
Returns a newOVRInitParams
instance for the specified memory address ornull
if the address isNULL
.
-
malloc
public static OVRInitParams.Buffer malloc(int capacity)
Returns a newOVRInitParams.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static OVRInitParams.Buffer calloc(int capacity)
Returns a newOVRInitParams.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRInitParams.Buffer create(int capacity)
Returns a newOVRInitParams.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRInitParams.Buffer create(long address, int capacity)
Create aOVRInitParams.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
mallocStack
public static OVRInitParams mallocStack()
Returns a newOVRInitParams
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static OVRInitParams callocStack()
Returns a newOVRInitParams
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static OVRInitParams mallocStack(MemoryStack stack)
Returns a newOVRInitParams
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static OVRInitParams callocStack(MemoryStack stack)
Returns a newOVRInitParams
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static OVRInitParams.Buffer mallocStack(int capacity)
Returns a newOVRInitParams.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static OVRInitParams.Buffer callocStack(int capacity)
Returns a newOVRInitParams.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static OVRInitParams.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newOVRInitParams.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static OVRInitParams.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newOVRInitParams.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-