Package org.lwjgl.ovr
Class OVRTrackingState
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<OVRTrackingState>
org.lwjgl.ovr.OVRTrackingState
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRTrackingState
extends org.lwjgl.system.Struct<OVRTrackingState>
implements org.lwjgl.system.NativeResource
Tracking state at a given absolute time (describes predicted HMD pose etc). Returned by
GetTrackingState.
Layout
struct ovrTrackingState {
ovrPoseStatef HeadPose();
unsigned int StatusFlags();
ovrPoseStatef HandPoses()[2];
unsigned int HandStatusFlags()[2];
ovrPosef CalibratedOrigin();
}-
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 size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionOVRTrackingState(ByteBuffer container) Creates aOVRTrackingStateinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionthe pose of the origin captured during calibration.static OVRTrackingStatecalloc()Returns a newOVRTrackingStateinstance allocated withmemCalloc.static OVRTrackingState.Buffercalloc(int capacity) Returns a newOVRTrackingState.Bufferinstance allocated withmemCalloc.static OVRTrackingState.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRTrackingState.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRTrackingStatecalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRTrackingStateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRTrackingStateDeprecated.static OVRTrackingState.BuffercallocStack(int capacity) Deprecated.static OVRTrackingState.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRTrackingStatecallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static OVRTrackingStatecreate()Returns a newOVRTrackingStateinstance allocated withBufferUtils.static OVRTrackingState.Buffercreate(int capacity) Returns a newOVRTrackingState.Bufferinstance allocated withBufferUtils.static OVRTrackingStatecreate(long address) Returns a newOVRTrackingStateinstance for the specified memory address.static OVRTrackingState.Buffercreate(long address, int capacity) Create aOVRTrackingState.Bufferinstance at the specified memory.static @Nullable OVRTrackingStatecreateSafe(long address) static @Nullable OVRTrackingState.BuffercreateSafe(long address, int capacity) The most recent calculated pose for each hand when hand controller tracking is present.HandPoses(int index) The most recent calculated pose for each hand when hand controller tracking is present.HandPosesstatus flags described byovrStatusBits.intHandStatusFlags(int index) HandPosesstatus flags described byovrStatusBits.HeadPose()Predicted head pose (and derivatives) at the requested absolute time.static OVRTrackingStatemalloc()Returns a newOVRTrackingStateinstance allocated withmemAlloc.static OVRTrackingState.Buffermalloc(int capacity) Returns a newOVRTrackingState.Bufferinstance allocated withmemAlloc.static OVRTrackingState.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRTrackingState.Bufferinstance allocated on the specifiedMemoryStack.static OVRTrackingStatemalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRTrackingStateinstance allocated on the specifiedMemoryStack.static OVRTrackingStateDeprecated.static OVRTrackingState.BuffermallocStack(int capacity) Deprecated.static OVRTrackingState.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRTrackingStatemallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static OVRPosefnCalibratedOrigin(long struct) Unsafe version ofCalibratedOrigin().static OVRPoseStatef.BuffernHandPoses(long struct) Unsafe version ofHandPoses().static OVRPoseStatefnHandPoses(long struct, int index) Unsafe version ofHandPoses.static IntBuffernHandStatusFlags(long struct) Unsafe version ofHandStatusFlags().static intnHandStatusFlags(long struct, int index) Unsafe version ofHandStatusFlags.static OVRPoseStatefnHeadPose(long struct) Unsafe version ofHeadPose().static intnStatusFlags(long struct) Unsafe version ofStatusFlags().intsizeof()intHeadPosetracking status described byovrStatusBits.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. -
HEADPOSE
public static final int HEADPOSEThe struct member offsets. -
STATUSFLAGS
public static final int STATUSFLAGSThe struct member offsets. -
HANDPOSES
public static final int HANDPOSESThe struct member offsets. -
HANDSTATUSFLAGS
public static final int HANDSTATUSFLAGSThe struct member offsets. -
CALIBRATEDORIGIN
public static final int CALIBRATEDORIGINThe struct member offsets.
-
-
Constructor Details
-
OVRTrackingState
Creates aOVRTrackingStateinstance 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<OVRTrackingState>
-
HeadPose
Predicted head pose (and derivatives) at the requested absolute time. The look-ahead interval is equal to(HeadPose.TimeInSeconds - RawSensorData.TimeInSeconds). -
StatusFlags
public int StatusFlags()HeadPosetracking status described byovrStatusBits. -
HandPoses
The most recent calculated pose for each hand when hand controller tracking is present.HandPoses[ovrHand_Left]refers to the left hand andHandPoses[ovrHand_Right]to the right hand. These values can be combined withovrInputStatefor complete hand controller information. -
HandPoses
The most recent calculated pose for each hand when hand controller tracking is present.HandPoses[ovrHand_Left]refers to the left hand andHandPoses[ovrHand_Right]to the right hand. These values can be combined withovrInputStatefor complete hand controller information. -
HandStatusFlags
HandPosesstatus flags described byovrStatusBits. -
HandStatusFlags
public int HandStatusFlags(int index) HandPosesstatus flags described byovrStatusBits. -
CalibratedOrigin
the pose of the origin captured during calibration.Like all other poses here, this is expressed in the space set by
RecenterTrackingOrigin, orSpecifyTrackingOriginand so will change every time either of those functions are called. This pose can be used to calculate where the calibrated origin lands in the new recentered space. If an application never callsRecenterTrackingOriginorSpecifyTrackingOrigin, expect this value to be the identity pose and as such will point respective origin based onovrTrackingOriginrequested when callingGetTrackingState. -
malloc
Returns a newOVRTrackingStateinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newOVRTrackingStateinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newOVRTrackingStateinstance allocated withBufferUtils. -
create
Returns a newOVRTrackingStateinstance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRTrackingState.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newOVRTrackingState.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newOVRTrackingState.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aOVRTrackingState.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 OVRTrackingState.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 OVRTrackingState.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newOVRTrackingStateinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newOVRTrackingStateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newOVRTrackingState.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newOVRTrackingState.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nHeadPose
Unsafe version ofHeadPose(). -
nStatusFlags
public static int nStatusFlags(long struct) Unsafe version ofStatusFlags(). -
nHandPoses
Unsafe version ofHandPoses(). -
nHandPoses
Unsafe version ofHandPoses. -
nHandStatusFlags
Unsafe version ofHandStatusFlags(). -
nHandStatusFlags
public static int nHandStatusFlags(long struct, int index) Unsafe version ofHandStatusFlags. -
nCalibratedOrigin
Unsafe version ofCalibratedOrigin().
-