Package org.lwjgl.ovr
Class OVRTrackerPose
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRTrackerPose
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class OVRTrackerPose extends Struct
Specifies the pose for a single sensor.Member documentation
TrackerFlags–ovrTrackerFlags.Pose– the sensor's pose. This pose includes sensor tilt (roll and pitch). For a leveled coordinate system useLeveledPose.LeveledPose– t the sensor's leveled pose, aligned with gravity. This value includes position and yaw of the sensor, but not roll and pitch. It can be used as a reference point to render real-world objects in the correct location.
Layout
struct ovrTrackerPose { unsigned int TrackerFlags;ovrPosefPose;ovrPosefLeveledPose; char[4]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classOVRTrackerPose.BufferAn array ofOVRTrackerPosestructs.-
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 OVRTrackerPose(java.nio.ByteBuffer container)Creates aOVRTrackerPoseinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static OVRTrackerPosecalloc()Returns a newOVRTrackerPoseinstance allocated withmemCalloc.static OVRTrackerPose.Buffercalloc(int capacity)Returns a newOVRTrackerPose.Bufferinstance allocated withmemCalloc.static OVRTrackerPosecallocStack()Returns a newOVRTrackerPoseinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRTrackerPose.BuffercallocStack(int capacity)Returns a newOVRTrackerPose.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRTrackerPose.BuffercallocStack(int capacity, MemoryStack stack)Returns a newOVRTrackerPose.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRTrackerPosecallocStack(MemoryStack stack)Returns a newOVRTrackerPoseinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRTrackerPosecreate()Returns a newOVRTrackerPoseinstance allocated withBufferUtils.static OVRTrackerPose.Buffercreate(int capacity)Returns a newOVRTrackerPose.Bufferinstance allocated withBufferUtils.static OVRTrackerPosecreate(long address)Returns a newOVRTrackerPoseinstance for the specified memory address ornullif the address isNULL.static OVRTrackerPose.Buffercreate(long address, int capacity)Create aOVRTrackerPose.Bufferinstance at the specified memory.OVRPosefLeveledPose()Returns aOVRPosefview of theLeveledPosefield.OVRTrackerPoseLeveledPose(OVRPosef value)Copies the specifiedOVRPosefto theLeveledPosefield.static OVRTrackerPosemalloc()Returns a newOVRTrackerPoseinstance allocated withmemAlloc.static OVRTrackerPose.Buffermalloc(int capacity)Returns a newOVRTrackerPose.Bufferinstance allocated withmemAlloc.static OVRTrackerPosemallocStack()Returns a newOVRTrackerPoseinstance allocated on the thread-localMemoryStack.static OVRTrackerPose.BuffermallocStack(int capacity)Returns a newOVRTrackerPose.Bufferinstance allocated on the thread-localMemoryStack.static OVRTrackerPose.BuffermallocStack(int capacity, MemoryStack stack)Returns a newOVRTrackerPose.Bufferinstance allocated on the specifiedMemoryStack.static OVRTrackerPosemallocStack(MemoryStack stack)Returns a newOVRTrackerPoseinstance allocated on the specifiedMemoryStack.OVRTrackerPosenset(long struct)Unsafe version ofset.OVRPosefPose()Returns aOVRPosefview of thePosefield.OVRTrackerPosePose(OVRPosef value)Copies the specifiedOVRPosefto thePosefield.OVRTrackerPoseset(int TrackerFlags, OVRPosef Pose, OVRPosef LeveledPose)Initializes this struct with the specified values.OVRTrackerPoseset(OVRTrackerPose src)Copies the specified struct data to this struct.intsizeof()Returns thesizeof(struct).intTrackerFlags()Returns the value of theTrackerFlagsfield.OVRTrackerPoseTrackerFlags(int value)Sets the specified value to theTrackerFlagsfield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
OVRTrackerPose
public OVRTrackerPose(java.nio.ByteBuffer container)
Creates aOVRTrackerPoseinstance 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).
-
TrackerFlags
public int TrackerFlags()
Returns the value of theTrackerFlagsfield.
-
TrackerFlags
public OVRTrackerPose TrackerFlags(int value)
Sets the specified value to theTrackerFlagsfield.
-
Pose
public OVRTrackerPose Pose(OVRPosef value)
Copies the specifiedOVRPosefto thePosefield.
-
LeveledPose
public OVRTrackerPose LeveledPose(OVRPosef value)
Copies the specifiedOVRPosefto theLeveledPosefield.
-
set
public OVRTrackerPose set(int TrackerFlags, OVRPosef Pose, OVRPosef LeveledPose)
Initializes this struct with the specified values.
-
nset
public OVRTrackerPose nset(long struct)
Unsafe version ofset.
-
set
public OVRTrackerPose set(OVRTrackerPose src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static OVRTrackerPose malloc()
Returns a newOVRTrackerPoseinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRTrackerPose calloc()
Returns a newOVRTrackerPoseinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRTrackerPose create()
Returns a newOVRTrackerPoseinstance allocated withBufferUtils.
-
create
public static OVRTrackerPose create(long address)
Returns a newOVRTrackerPoseinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static OVRTrackerPose.Buffer malloc(int capacity)
Returns a newOVRTrackerPose.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static OVRTrackerPose.Buffer calloc(int capacity)
Returns a newOVRTrackerPose.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static OVRTrackerPose.Buffer create(int capacity)
Returns a newOVRTrackerPose.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static OVRTrackerPose.Buffer create(long address, int capacity)
Create aOVRTrackerPose.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static OVRTrackerPose mallocStack()
Returns a newOVRTrackerPoseinstance allocated on the thread-localMemoryStack.
-
callocStack
public static OVRTrackerPose callocStack()
Returns a newOVRTrackerPoseinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static OVRTrackerPose mallocStack(MemoryStack stack)
Returns a newOVRTrackerPoseinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRTrackerPose callocStack(MemoryStack stack)
Returns a newOVRTrackerPoseinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static OVRTrackerPose.Buffer mallocStack(int capacity)
Returns a newOVRTrackerPose.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static OVRTrackerPose.Buffer callocStack(int capacity)
Returns a newOVRTrackerPose.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static OVRTrackerPose.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newOVRTrackerPose.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static OVRTrackerPose.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newOVRTrackerPose.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-