Package org.lwjgl.ovr
Class OVRPoseStatef
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<OVRPoseStatef>
org.lwjgl.ovr.OVRPoseStatef
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRPoseStatef
extends org.lwjgl.system.Struct<OVRPoseStatef>
implements org.lwjgl.system.NativeResource
A full pose (rigid body) configuration with first and second derivatives.
Body refers to any object for which ovrPoseStatef is providing data. It can be the HMD, Touch controller, sensor or something else. The context depends on the usage of the struct.
Layout
struct ovrPoseStatef {
ovrPosef ThePose();
ovrVector3f AngularVelocity();
ovrVector3f LinearVelocity();
ovrVector3f AngularAcceleration();
ovrVector3f LinearAcceleration();
char[4];
double TimeInSeconds();
}-
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.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
ConstructorsConstructorDescriptionOVRPoseStatef(ByteBuffer container) Creates aOVRPoseStatefinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionangular acceleration in radians per second per secondangular velocity in radians per secondstatic OVRPoseStatefcalloc()Returns a newOVRPoseStatefinstance allocated withmemCalloc.static OVRPoseStatef.Buffercalloc(int capacity) Returns a newOVRPoseStatef.Bufferinstance allocated withmemCalloc.static OVRPoseStatef.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRPoseStatef.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRPoseStatefcalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRPoseStatefinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRPoseStatefDeprecated.static OVRPoseStatef.BuffercallocStack(int capacity) Deprecated.static OVRPoseStatef.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRPoseStatefcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static OVRPoseStatefcreate()Returns a newOVRPoseStatefinstance allocated withBufferUtils.static OVRPoseStatef.Buffercreate(int capacity) Returns a newOVRPoseStatef.Bufferinstance allocated withBufferUtils.static OVRPoseStatefcreate(long address) Returns a newOVRPoseStatefinstance for the specified memory address.static OVRPoseStatef.Buffercreate(long address, int capacity) Create aOVRPoseStatef.Bufferinstance at the specified memory.static @Nullable OVRPoseStatefcreateSafe(long address) static @Nullable OVRPoseStatef.BuffercreateSafe(long address, int capacity) acceleration in meters per second per secondvelocity in meters per secondstatic OVRPoseStatefmalloc()Returns a newOVRPoseStatefinstance allocated withmemAlloc.static OVRPoseStatef.Buffermalloc(int capacity) Returns a newOVRPoseStatef.Bufferinstance allocated withmemAlloc.static OVRPoseStatef.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRPoseStatef.Bufferinstance allocated on the specifiedMemoryStack.static OVRPoseStatefmalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRPoseStatefinstance allocated on the specifiedMemoryStack.static OVRPoseStatefDeprecated.static OVRPoseStatef.BuffermallocStack(int capacity) Deprecated.static OVRPoseStatef.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRPoseStatefmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static OVRVector3fnAngularAcceleration(long struct) Unsafe version ofAngularAcceleration().static OVRVector3fnAngularVelocity(long struct) Unsafe version ofAngularVelocity().static OVRVector3fnLinearAcceleration(long struct) Unsafe version ofLinearAcceleration().static OVRVector3fnLinearVelocity(long struct) Unsafe version ofLinearVelocity().static OVRPosefnThePose(long struct) Unsafe version ofThePose().static doublenTimeInSeconds(long struct) Unsafe version ofTimeInSeconds().intsizeof()ThePose()position and orientationdoubleabsolute time that this pose refers to.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. -
THEPOSE
public static final int THEPOSEThe struct member offsets. -
ANGULARVELOCITY
public static final int ANGULARVELOCITYThe struct member offsets. -
LINEARVELOCITY
public static final int LINEARVELOCITYThe struct member offsets. -
ANGULARACCELERATION
public static final int ANGULARACCELERATIONThe struct member offsets. -
LINEARACCELERATION
public static final int LINEARACCELERATIONThe struct member offsets. -
TIMEINSECONDS
public static final int TIMEINSECONDSThe struct member offsets.
-
-
Constructor Details
-
OVRPoseStatef
Creates aOVRPoseStatefinstance 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<OVRPoseStatef>
-
ThePose
position and orientation -
AngularVelocity
angular velocity in radians per second -
LinearVelocity
velocity in meters per second -
AngularAcceleration
angular acceleration in radians per second per second -
LinearAcceleration
acceleration in meters per second per second -
TimeInSeconds
public double TimeInSeconds()absolute time that this pose refers to. SeeGetTimeInSeconds -
malloc
Returns a newOVRPoseStatefinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newOVRPoseStatefinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newOVRPoseStatefinstance allocated withBufferUtils. -
create
Returns a newOVRPoseStatefinstance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRPoseStatef.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newOVRPoseStatef.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newOVRPoseStatef.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aOVRPoseStatef.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 OVRPoseStatef.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 OVRPoseStatef.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newOVRPoseStatefinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newOVRPoseStatefinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newOVRPoseStatef.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newOVRPoseStatef.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nThePose
Unsafe version ofThePose(). -
nAngularVelocity
Unsafe version ofAngularVelocity(). -
nLinearVelocity
Unsafe version ofLinearVelocity(). -
nAngularAcceleration
Unsafe version ofAngularAcceleration(). -
nLinearAcceleration
Unsafe version ofLinearAcceleration(). -
nTimeInSeconds
public static double nTimeInSeconds(long struct) Unsafe version ofTimeInSeconds().
-