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;
ovrPosef
Pose;ovrPosef
LeveledPose; char[4]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
OVRTrackerPose.Buffer
An array ofOVRTrackerPose
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The 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 aOVRTrackerPose
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and 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, MemoryStack stack)
Returns a newOVRTrackerPose.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRTrackerPose
callocStack(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 ornull
if the address isNULL
.static OVRTrackerPose.Buffer
create(long address, int capacity)
Create aOVRTrackerPose.Buffer
instance at the specified memory.OVRPosef
LeveledPose()
Returns aOVRPosef
view of theLeveledPose
field.OVRTrackerPose
LeveledPose(OVRPosef value)
Copies the specifiedOVRPosef
to 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, MemoryStack stack)
Returns a newOVRTrackerPose.Buffer
instance allocated on the specifiedMemoryStack
.static OVRTrackerPose
mallocStack(MemoryStack stack)
Returns a newOVRTrackerPose
instance allocated on the specifiedMemoryStack
.OVRTrackerPose
nset(long struct)
Unsafe version ofset
.OVRPosef
Pose()
Returns aOVRPosef
view of thePose
field.OVRTrackerPose
Pose(OVRPosef value)
Copies the specifiedOVRPosef
to thePose
field.OVRTrackerPose
set(int TrackerFlags, OVRPosef Pose, OVRPosef LeveledPose)
Initializes this struct with the specified values.OVRTrackerPose
set(OVRTrackerPose src)
Copies the specified struct data to this struct.int
sizeof()
Returns thesizeof(struct)
.int
TrackerFlags()
Returns the value of theTrackerFlags
field.OVRTrackerPose
TrackerFlags(int value)
Sets the specified value to theTrackerFlags
field.-
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 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()
Description copied from class:Struct
Returns thesizeof(struct)
.
-
TrackerFlags
public int TrackerFlags()
Returns the value of theTrackerFlags
field.
-
TrackerFlags
public OVRTrackerPose TrackerFlags(int value)
Sets the specified value to theTrackerFlags
field.
-
Pose
public OVRTrackerPose Pose(OVRPosef value)
Copies the specifiedOVRPosef
to thePose
field.
-
LeveledPose
public OVRTrackerPose LeveledPose(OVRPosef value)
Copies the specifiedOVRPosef
to theLeveledPose
field.
-
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 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 ornull
if the address isNULL
.
-
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
-
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(MemoryStack stack)
Returns a newOVRTrackerPose
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static OVRTrackerPose callocStack(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, 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, 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
-
-