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 classOVRSessionStatus.BufferAn array ofOVRSessionStatusstructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe 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 aOVRSessionStatusinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static OVRSessionStatuscalloc()Returns a newOVRSessionStatusinstance allocated withmemCalloc.static OVRSessionStatus.Buffercalloc(int capacity)Returns a newOVRSessionStatus.Bufferinstance allocated withmemCalloc.static OVRSessionStatuscallocStack()Returns a newOVRSessionStatusinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRSessionStatus.BuffercallocStack(int capacity)Returns a newOVRSessionStatus.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRSessionStatus.BuffercallocStack(int capacity, MemoryStack stack)Returns a newOVRSessionStatus.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRSessionStatuscallocStack(MemoryStack stack)Returns a newOVRSessionStatusinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRSessionStatuscreate()Returns a newOVRSessionStatusinstance allocated withBufferUtils.static OVRSessionStatus.Buffercreate(int capacity)Returns a newOVRSessionStatus.Bufferinstance allocated withBufferUtils.static OVRSessionStatuscreate(long address)Returns a newOVRSessionStatusinstance for the specified memory address ornullif the address isNULL.static OVRSessionStatus.Buffercreate(long address, int capacity)Create aOVRSessionStatus.Bufferinstance at the specified memory.booleanDisplayLost()Returns the value of theDisplayLostfield.booleanHmdMounted()Returns the value of theHmdMountedfield.booleanHmdPresent()Returns the value of theHmdPresentfield.booleanIsVisible()Returns the value of theIsVisiblefield.static OVRSessionStatusmalloc()Returns a newOVRSessionStatusinstance allocated withmemAlloc.static OVRSessionStatus.Buffermalloc(int capacity)Returns a newOVRSessionStatus.Bufferinstance allocated withmemAlloc.static OVRSessionStatusmallocStack()Returns a newOVRSessionStatusinstance allocated on the thread-localMemoryStack.static OVRSessionStatus.BuffermallocStack(int capacity)Returns a newOVRSessionStatus.Bufferinstance allocated on the thread-localMemoryStack.static OVRSessionStatus.BuffermallocStack(int capacity, MemoryStack stack)Returns a newOVRSessionStatus.Bufferinstance allocated on the specifiedMemoryStack.static OVRSessionStatusmallocStack(MemoryStack stack)Returns a newOVRSessionStatusinstance allocated on the specifiedMemoryStack.booleanShouldQuit()Returns the value of theShouldQuitfield.booleanShouldRecenter()Returns the value of theShouldRecenterfield.intsizeof()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 aOVRSessionStatusinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturns thesizeof(struct).
-
IsVisible
public boolean IsVisible()
Returns the value of theIsVisiblefield.
-
HmdPresent
public boolean HmdPresent()
Returns the value of theHmdPresentfield.
-
HmdMounted
public boolean HmdMounted()
Returns the value of theHmdMountedfield.
-
DisplayLost
public boolean DisplayLost()
Returns the value of theDisplayLostfield.
-
ShouldQuit
public boolean ShouldQuit()
Returns the value of theShouldQuitfield.
-
ShouldRecenter
public boolean ShouldRecenter()
Returns the value of theShouldRecenterfield.
-
malloc
public static OVRSessionStatus malloc()
Returns a newOVRSessionStatusinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRSessionStatus calloc()
Returns a newOVRSessionStatusinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRSessionStatus create()
Returns a newOVRSessionStatusinstance allocated withBufferUtils.
-
create
public static OVRSessionStatus create(long address)
Returns a newOVRSessionStatusinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static OVRSessionStatus.Buffer malloc(int capacity)
Returns a newOVRSessionStatus.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static OVRSessionStatus.Buffer calloc(int capacity)
Returns a newOVRSessionStatus.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static OVRSessionStatus.Buffer create(int capacity)
Returns a newOVRSessionStatus.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static OVRSessionStatus.Buffer create(long address, int capacity)
Create aOVRSessionStatus.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static OVRSessionStatus mallocStack()
Returns a newOVRSessionStatusinstance allocated on the thread-localMemoryStack.
-
callocStack
public static OVRSessionStatus callocStack()
Returns a newOVRSessionStatusinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static OVRSessionStatus mallocStack(MemoryStack stack)
Returns a newOVRSessionStatusinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRSessionStatus callocStack(MemoryStack stack)
Returns a newOVRSessionStatusinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static OVRSessionStatus.Buffer callocStack(int capacity)
Returns a newOVRSessionStatus.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static OVRSessionStatus.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newOVRSessionStatus.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-