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,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRTrackerPose extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceSpecifies 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 pos 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; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOVRTrackerPose.BufferAn array ofOVRTrackerPosestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intLEVELEDPOSE
POSEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTRACKERFLAGSThe struct member offsets.
-
Constructor Summary
Constructors Constructor 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 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, org.lwjgl.system.MemoryStack stack)Returns a newOVRTrackerPose.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRTrackerPosecallocStack(org.lwjgl.system.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.static OVRTrackerPose.Buffercreate(long address, int capacity)Create aOVRTrackerPose.Bufferinstance at the specified memory.static OVRTrackerPosecreateSafe(long address)static OVRTrackerPose.BuffercreateSafe(long address, int capacity)OVRPosefLeveledPose()Returns aOVRPosefview of 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, org.lwjgl.system.MemoryStack stack)Returns a newOVRTrackerPose.Bufferinstance allocated on the specifiedMemoryStack.static OVRTrackerPosemallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRTrackerPoseinstance allocated on the specifiedMemoryStack.static OVRPosefnLeveledPose(long struct)Unsafe version ofLeveledPose().static OVRPosefnPose(long struct)Unsafe version ofPose().static intnTrackerFlags(long struct)Unsafe version ofTrackerFlags().OVRPosefPose()Returns aOVRPosefview of thePosefield.intsizeof()intTrackerFlags()Returns the value of theTrackerFlagsfield.
-
-
-
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()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
TrackerFlags
public int TrackerFlags()
Returns the value of theTrackerFlagsfield.
-
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.
-
createSafe
@Nullable public static OVRTrackerPose createSafe(long address)
-
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
-
createSafe
@Nullable public static OVRTrackerPose.Buffer createSafe(long address, int 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(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTrackerPoseinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRTrackerPose callocStack(org.lwjgl.system.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, org.lwjgl.system.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, org.lwjgl.system.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
-
nTrackerFlags
public static int nTrackerFlags(long struct)
Unsafe version ofTrackerFlags().
-
nLeveledPose
public static OVRPosef nLeveledPose(long struct)
Unsafe version ofLeveledPose().
-
-