Package org.lwjgl.ovr
Class OVRSessionStatus
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<OVRSessionStatus>
org.lwjgl.ovr.OVRSessionStatus
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRSessionStatus
extends org.lwjgl.system.Struct<OVRSessionStatus>
implements org.lwjgl.system.NativeResource
Specifies status information for the current session.
Layout
struct ovrSessionStatus {
ovrBool IsVisible();
ovrBool HmdPresent();
ovrBool HmdMounted();
ovrBool DisplayLost();
ovrBool ShouldQuit();
ovrBool ShouldRecenter();
ovrBool HasInputFocus();
ovrBool OverlayPresent();
ovrBool DepthRequested();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionOVRSessionStatus(ByteBuffer container) Creates aOVRSessionStatusinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic OVRSessionStatuscalloc()Returns a newOVRSessionStatusinstance allocated withmemCalloc.static OVRSessionStatus.Buffercalloc(int capacity) Returns a newOVRSessionStatus.Bufferinstance allocated withmemCalloc.static OVRSessionStatus.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRSessionStatus.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRSessionStatuscalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRSessionStatusinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRSessionStatusDeprecated.static OVRSessionStatus.BuffercallocStack(int capacity) Deprecated.static OVRSessionStatus.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRSessionStatuscallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.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.static OVRSessionStatus.Buffercreate(long address, int capacity) Create aOVRSessionStatus.Bufferinstance at the specified memory.static @Nullable OVRSessionStatuscreateSafe(long address) static @Nullable OVRSessionStatus.BuffercreateSafe(long address, int capacity) booleanTrue if runtime is requesting that the application provide depth buffers with projection layers.booleanTrue if the session is in a display-lost state.booleanTrue if the application is the foreground application and receives input (e.g.booleanTrue if the HMD is on the user's head.booleanTrue if an HMD is present.booleanTrue if the process has VR focus and thus is visible in the HMD.static OVRSessionStatusmalloc()Returns a newOVRSessionStatusinstance allocated withmemAlloc.static OVRSessionStatus.Buffermalloc(int capacity) Returns a newOVRSessionStatus.Bufferinstance allocated withmemAlloc.static OVRSessionStatus.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRSessionStatus.Bufferinstance allocated on the specifiedMemoryStack.static OVRSessionStatusmalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRSessionStatusinstance allocated on the specifiedMemoryStack.static OVRSessionStatusDeprecated.static OVRSessionStatus.BuffermallocStack(int capacity) Deprecated.static OVRSessionStatus.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRSessionStatusmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static booleannDepthRequested(long struct) Unsafe version ofDepthRequested().static booleannDisplayLost(long struct) Unsafe version ofDisplayLost().static booleannHasInputFocus(long struct) Unsafe version ofHasInputFocus().static booleannHmdMounted(long struct) Unsafe version ofHmdMounted().static booleannHmdPresent(long struct) Unsafe version ofHmdPresent().static booleannIsVisible(long struct) Unsafe version ofIsVisible().static booleannOverlayPresent(long struct) Unsafe version ofOverlayPresent().static booleannShouldQuit(long struct) Unsafe version ofShouldQuit().static booleannShouldRecenter(long struct) Unsafe version ofShouldRecenter().booleanTrue if a system overlay is present, such as a dashboard.booleanTrue if the application should initiate shutdown.booleanTrue if UX has requested re-centering.intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
ISVISIBLE
public static final int ISVISIBLEThe struct member offsets. -
HMDPRESENT
public static final int HMDPRESENTThe struct member offsets. -
HMDMOUNTED
public static final int HMDMOUNTEDThe struct member offsets. -
DISPLAYLOST
public static final int DISPLAYLOSTThe struct member offsets. -
SHOULDQUIT
public static final int SHOULDQUITThe struct member offsets. -
SHOULDRECENTER
public static final int SHOULDRECENTERThe struct member offsets. -
HASINPUTFOCUS
public static final int HASINPUTFOCUSThe struct member offsets. -
OVERLAYPRESENT
public static final int OVERLAYPRESENTThe struct member offsets. -
DEPTHREQUESTED
public static final int DEPTHREQUESTEDThe struct member offsets.
-
-
Constructor Details
-
OVRSessionStatus
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<OVRSessionStatus>
-
IsVisible
public boolean IsVisible()True if the process has VR focus and thus is visible in the HMD. -
HmdPresent
public boolean HmdPresent()True if an HMD is present. -
HmdMounted
public boolean HmdMounted()True if the HMD is on the user's head. -
DisplayLost
public boolean DisplayLost()True if the session is in a display-lost state. SeeSubmitFrame. -
ShouldQuit
public boolean ShouldQuit()True if the application should initiate shutdown. -
ShouldRecenter
public boolean ShouldRecenter()True if UX has requested re-centering. Must callClearShouldRecenterFlag,RecenterTrackingOriginorSpecifyTrackingOrigin. -
HasInputFocus
public boolean HasInputFocus()True if the application is the foreground application and receives input (e.g. Touch controller state). If this is false then the application is in the background (but possibly still visible) should hide any input representations such as hands. -
OverlayPresent
public boolean OverlayPresent()True if a system overlay is present, such as a dashboard. In this case the application (if visible) should pause while still drawing, avoid drawing near-field graphics so they don't visually fight with the system overlay, and consume fewer CPU and GPU resources.Deprecated, do not use.
-
DepthRequested
public boolean DepthRequested()True if runtime is requesting that the application provide depth buffers with projection layers. -
malloc
Returns a newOVRSessionStatusinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newOVRSessionStatusinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newOVRSessionStatusinstance allocated withBufferUtils. -
create
Returns a newOVRSessionStatusinstance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRSessionStatus.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newOVRSessionStatus.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newOVRSessionStatus.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aOVRSessionStatus.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
@Deprecated public static OVRSessionStatus.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static OVRSessionStatus.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newOVRSessionStatusinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newOVRSessionStatusinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newOVRSessionStatus.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newOVRSessionStatus.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nIsVisible
public static boolean nIsVisible(long struct) Unsafe version ofIsVisible(). -
nHmdPresent
public static boolean nHmdPresent(long struct) Unsafe version ofHmdPresent(). -
nHmdMounted
public static boolean nHmdMounted(long struct) Unsafe version ofHmdMounted(). -
nDisplayLost
public static boolean nDisplayLost(long struct) Unsafe version ofDisplayLost(). -
nShouldQuit
public static boolean nShouldQuit(long struct) Unsafe version ofShouldQuit(). -
nShouldRecenter
public static boolean nShouldRecenter(long struct) Unsafe version ofShouldRecenter(). -
nHasInputFocus
public static boolean nHasInputFocus(long struct) Unsafe version ofHasInputFocus(). -
nOverlayPresent
public static boolean nOverlayPresent(long struct) Unsafe version ofOverlayPresent(). -
nDepthRequested
public static boolean nDepthRequested(long struct) Unsafe version ofDepthRequested().
-