Package org.lwjgl.ovr
Class OVRSessionStatus
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRSessionStatus
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class OVRSessionStatus extends Struct
Specifies status information for the current session.Member documentation
IsVisible
– True if the process has VR focus and thus is visible in the HMD.HmdPresent
– True if an HMD is present.HmdMounted
– True if the HMD is on the user's head.DisplayLost
– True if the session is in a display-lost state. SeeOVR.ovr_SubmitFrame(long, long, org.lwjgl.ovr.OVRViewScaleDesc, org.lwjgl.PointerBuffer)
.ShouldQuit
– True if the application should initiate shutdown.ShouldRecenter
– True if UX has requested re-centering. Must callOVR.ovr_ClearShouldRecenterFlag(long)
orOVR.ovr_RecenterTrackingOrigin(long)
.
Layout
struct ovrSessionStatus { ovrBool IsVisible; ovrBool HmdPresent; ovrBool HmdMounted; ovrBool DisplayLost; ovrBool ShouldQuit; ovrBool ShouldRecenter; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
OVRSessionStatus.Buffer
An array ofOVRSessionStatus
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 OVRSessionStatus(java.nio.ByteBuffer container)
Creates aOVRSessionStatus
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 OVRSessionStatus
calloc()
Returns a newOVRSessionStatus
instance allocated withmemCalloc
.static OVRSessionStatus.Buffer
calloc(int capacity)
Returns a newOVRSessionStatus.Buffer
instance allocated withmemCalloc
.static OVRSessionStatus
callocStack()
Returns a newOVRSessionStatus
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRSessionStatus.Buffer
callocStack(int capacity)
Returns a newOVRSessionStatus.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRSessionStatus.Buffer
callocStack(int capacity, MemoryStack stack)
Returns a newOVRSessionStatus.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRSessionStatus
callocStack(MemoryStack stack)
Returns a newOVRSessionStatus
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRSessionStatus
create()
Returns a newOVRSessionStatus
instance allocated withBufferUtils
.static OVRSessionStatus.Buffer
create(int capacity)
Returns a newOVRSessionStatus.Buffer
instance allocated withBufferUtils
.static OVRSessionStatus
create(long address)
Returns a newOVRSessionStatus
instance for the specified memory address ornull
if the address isNULL
.static OVRSessionStatus.Buffer
create(long address, int capacity)
Create aOVRSessionStatus.Buffer
instance at the specified memory.boolean
DisplayLost()
Returns the value of theDisplayLost
field.boolean
HmdMounted()
Returns the value of theHmdMounted
field.boolean
HmdPresent()
Returns the value of theHmdPresent
field.boolean
IsVisible()
Returns the value of theIsVisible
field.static OVRSessionStatus
malloc()
Returns a newOVRSessionStatus
instance allocated withmemAlloc
.static OVRSessionStatus.Buffer
malloc(int capacity)
Returns a newOVRSessionStatus.Buffer
instance allocated withmemAlloc
.static OVRSessionStatus
mallocStack()
Returns a newOVRSessionStatus
instance allocated on the thread-localMemoryStack
.static OVRSessionStatus.Buffer
mallocStack(int capacity)
Returns a newOVRSessionStatus.Buffer
instance allocated on the thread-localMemoryStack
.static OVRSessionStatus.Buffer
mallocStack(int capacity, MemoryStack stack)
Returns a newOVRSessionStatus.Buffer
instance allocated on the specifiedMemoryStack
.static OVRSessionStatus
mallocStack(MemoryStack stack)
Returns a newOVRSessionStatus
instance allocated on the specifiedMemoryStack
.boolean
ShouldQuit()
Returns the value of theShouldQuit
field.boolean
ShouldRecenter()
Returns the value of theShouldRecenter
field.int
sizeof()
Returns thesizeof(struct)
.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
OVRSessionStatus
public OVRSessionStatus(java.nio.ByteBuffer container)
Creates aOVRSessionStatus
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)
.
-
IsVisible
public boolean IsVisible()
Returns the value of theIsVisible
field.
-
HmdPresent
public boolean HmdPresent()
Returns the value of theHmdPresent
field.
-
HmdMounted
public boolean HmdMounted()
Returns the value of theHmdMounted
field.
-
DisplayLost
public boolean DisplayLost()
Returns the value of theDisplayLost
field.
-
ShouldQuit
public boolean ShouldQuit()
Returns the value of theShouldQuit
field.
-
ShouldRecenter
public boolean ShouldRecenter()
Returns the value of theShouldRecenter
field.
-
malloc
public static OVRSessionStatus malloc()
Returns a newOVRSessionStatus
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static OVRSessionStatus calloc()
Returns a newOVRSessionStatus
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static OVRSessionStatus create()
Returns a newOVRSessionStatus
instance allocated withBufferUtils
.
-
create
public static OVRSessionStatus create(long address)
Returns a newOVRSessionStatus
instance for the specified memory address ornull
if the address isNULL
.
-
malloc
public static OVRSessionStatus.Buffer malloc(int capacity)
Returns a newOVRSessionStatus.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static OVRSessionStatus.Buffer calloc(int capacity)
Returns a newOVRSessionStatus.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRSessionStatus.Buffer create(int capacity)
Returns a newOVRSessionStatus.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRSessionStatus.Buffer create(long address, int capacity)
Create aOVRSessionStatus.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
mallocStack
public static OVRSessionStatus mallocStack()
Returns a newOVRSessionStatus
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static OVRSessionStatus callocStack()
Returns a newOVRSessionStatus
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static OVRSessionStatus mallocStack(MemoryStack stack)
Returns a newOVRSessionStatus
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static OVRSessionStatus callocStack(MemoryStack stack)
Returns a newOVRSessionStatus
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static OVRSessionStatus.Buffer mallocStack(int capacity)
Returns a newOVRSessionStatus.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static OVRSessionStatus.Buffer callocStack(int capacity)
Returns a newOVRSessionStatus.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static OVRSessionStatus.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newOVRSessionStatus.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static OVRSessionStatus.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newOVRSessionStatus.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-