Package org.lwjgl.ovr
Class OVRDetectResult
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<OVRDetectResult>
org.lwjgl.ovr.OVRDetectResult
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRDetectResult
extends org.lwjgl.system.Struct<OVRDetectResult>
implements org.lwjgl.system.NativeResource
Return values for
_Detect.
Layout
struct ovrDetectResult {
ovrBool IsOculusServiceRunning();
ovrBool IsOculusHMDConnected();
char[6];
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionOVRDetectResult(ByteBuffer container) Creates aOVRDetectResultinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic OVRDetectResultcalloc()Returns a newOVRDetectResultinstance allocated withmemCalloc.static OVRDetectResult.Buffercalloc(int capacity) Returns a newOVRDetectResult.Bufferinstance allocated withmemCalloc.static OVRDetectResult.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRDetectResult.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRDetectResultcalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRDetectResultinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRDetectResultDeprecated.static OVRDetectResult.BuffercallocStack(int capacity) Deprecated.static OVRDetectResult.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRDetectResultcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static OVRDetectResultcreate()Returns a newOVRDetectResultinstance allocated withBufferUtils.static OVRDetectResult.Buffercreate(int capacity) Returns a newOVRDetectResult.Bufferinstance allocated withBufferUtils.static OVRDetectResultcreate(long address) Returns a newOVRDetectResultinstance for the specified memory address.static OVRDetectResult.Buffercreate(long address, int capacity) Create aOVRDetectResult.Bufferinstance at the specified memory.static @Nullable OVRDetectResultcreateSafe(long address) static @Nullable OVRDetectResult.BuffercreateSafe(long address, int capacity) booleanisFalsewhen an Oculus HMD is not detected.booleanisFalsewhen the Oculus Service is not running.static OVRDetectResultmalloc()Returns a newOVRDetectResultinstance allocated withmemAlloc.static OVRDetectResult.Buffermalloc(int capacity) Returns a newOVRDetectResult.Bufferinstance allocated withmemAlloc.static OVRDetectResult.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRDetectResult.Bufferinstance allocated on the specifiedMemoryStack.static OVRDetectResultmalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRDetectResultinstance allocated on the specifiedMemoryStack.static OVRDetectResultDeprecated.static OVRDetectResult.BuffermallocStack(int capacity) Deprecated.static OVRDetectResult.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRDetectResultmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static booleannIsOculusHMDConnected(long struct) Unsafe version ofIsOculusHMDConnected().static booleannIsOculusServiceRunning(long struct) Unsafe version ofIsOculusServiceRunning().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. -
ISOCULUSSERVICERUNNING
public static final int ISOCULUSSERVICERUNNINGThe struct member offsets. -
ISOCULUSHMDCONNECTED
public static final int ISOCULUSHMDCONNECTEDThe struct member offsets.
-
-
Constructor Details
-
OVRDetectResult
Creates aOVRDetectResultinstance 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<OVRDetectResult>
-
IsOculusServiceRunning
public boolean IsOculusServiceRunning()isFalsewhen the Oculus Service is not running. This means that the Oculus Service is either uninstalled or stopped.IsOculusHMDConnectedwill beFalsein this case.is
Truewhen the Oculus Service is running. This means that the Oculus Service is installed and running.IsOculusHMDConnectedwill reflect the state of the HMD. -
IsOculusHMDConnected
public boolean IsOculusHMDConnected() -
malloc
Returns a newOVRDetectResultinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newOVRDetectResultinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newOVRDetectResultinstance allocated withBufferUtils. -
create
Returns a newOVRDetectResultinstance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRDetectResult.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newOVRDetectResult.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newOVRDetectResult.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aOVRDetectResult.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 OVRDetectResult.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 OVRDetectResult.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newOVRDetectResultinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newOVRDetectResultinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newOVRDetectResult.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newOVRDetectResult.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nIsOculusServiceRunning
public static boolean nIsOculusServiceRunning(long struct) Unsafe version ofIsOculusServiceRunning(). -
nIsOculusHMDConnected
public static boolean nIsOculusHMDConnected(long struct) Unsafe version ofIsOculusHMDConnected().
-