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.NativeResource
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 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;
ovrPosef
Pose;ovrPosef
LeveledPose; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OVRTrackerPose.Buffer
An array ofOVRTrackerPose
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
LEVELEDPOSE
POSEThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
TRACKERFLAGS
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description OVRTrackerPose(java.nio.ByteBuffer container)
Creates aOVRTrackerPose
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OVRTrackerPose
calloc()
Returns a newOVRTrackerPose
instance allocated withmemCalloc
.static OVRTrackerPose.Buffer
calloc(int capacity)
Returns a newOVRTrackerPose.Buffer
instance allocated withmemCalloc
.static OVRTrackerPose
callocStack()
Returns a newOVRTrackerPose
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRTrackerPose.Buffer
callocStack(int capacity)
Returns a newOVRTrackerPose.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRTrackerPose.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRTrackerPose.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRTrackerPose
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTrackerPose
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRTrackerPose
create()
Returns a newOVRTrackerPose
instance allocated withBufferUtils
.static OVRTrackerPose.Buffer
create(int capacity)
Returns a newOVRTrackerPose.Buffer
instance allocated withBufferUtils
.static OVRTrackerPose
create(long address)
Returns a newOVRTrackerPose
instance for the specified memory address.static OVRTrackerPose.Buffer
create(long address, int capacity)
Create aOVRTrackerPose.Buffer
instance at the specified memory.static OVRTrackerPose
createSafe(long address)
static OVRTrackerPose.Buffer
createSafe(long address, int capacity)
OVRPosef
LeveledPose()
Returns aOVRPosef
view of theLeveledPose
field.static OVRTrackerPose
malloc()
Returns a newOVRTrackerPose
instance allocated withmemAlloc
.static OVRTrackerPose.Buffer
malloc(int capacity)
Returns a newOVRTrackerPose.Buffer
instance allocated withmemAlloc
.static OVRTrackerPose
mallocStack()
Returns a newOVRTrackerPose
instance allocated on the thread-localMemoryStack
.static OVRTrackerPose.Buffer
mallocStack(int capacity)
Returns a newOVRTrackerPose.Buffer
instance allocated on the thread-localMemoryStack
.static OVRTrackerPose.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRTrackerPose.Buffer
instance allocated on the specifiedMemoryStack
.static OVRTrackerPose
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTrackerPose
instance allocated on the specifiedMemoryStack
.static OVRPosef
nLeveledPose(long struct)
Unsafe version ofLeveledPose()
.static OVRPosef
nPose(long struct)
Unsafe version ofPose()
.static int
nTrackerFlags(long struct)
Unsafe version ofTrackerFlags()
.OVRPosef
Pose()
Returns aOVRPosef
view of thePose
field.int
sizeof()
int
TrackerFlags()
Returns the value of theTrackerFlags
field.
-
-
-
Constructor Detail
-
OVRTrackerPose
public OVRTrackerPose(java.nio.ByteBuffer container)
Creates aOVRTrackerPose
instance at the current position of the specifiedByteBuffer
container. 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:
sizeof
in classorg.lwjgl.system.Struct
-
TrackerFlags
public int TrackerFlags()
Returns the value of theTrackerFlags
field.
-
malloc
public static OVRTrackerPose malloc()
Returns a newOVRTrackerPose
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static OVRTrackerPose calloc()
Returns a newOVRTrackerPose
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static OVRTrackerPose create()
Returns a newOVRTrackerPose
instance allocated withBufferUtils
.
-
create
public static OVRTrackerPose create(long address)
Returns a newOVRTrackerPose
instance for the specified memory address.
-
createSafe
@Nullable public static OVRTrackerPose createSafe(long address)
-
malloc
public static OVRTrackerPose.Buffer malloc(int capacity)
Returns a newOVRTrackerPose.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static OVRTrackerPose.Buffer calloc(int capacity)
Returns a newOVRTrackerPose.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRTrackerPose.Buffer create(int capacity)
Returns a newOVRTrackerPose.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRTrackerPose.Buffer create(long address, int capacity)
Create aOVRTrackerPose.Buffer
instance 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 newOVRTrackerPose
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static OVRTrackerPose callocStack()
Returns a newOVRTrackerPose
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static OVRTrackerPose mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTrackerPose
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static OVRTrackerPose callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTrackerPose
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static OVRTrackerPose.Buffer callocStack(int capacity)
Returns a newOVRTrackerPose.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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()
.
-
-