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.Layout
struct ovrTrackerPose { unsigned intTrackerFlags();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 Deprecated 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 OVRTrackerPose.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRTrackerPose.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRTrackerPosecalloc(org.lwjgl.system.MemoryStack stack)Returns a newOVRTrackerPoseinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRTrackerPosecallocStack()Deprecated.static OVRTrackerPose.BuffercallocStack(int capacity)Deprecated.static OVRTrackerPose.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static OVRTrackerPosecallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()t the sensor's leveled pose, aligned with gravity.static OVRTrackerPosemalloc()Returns a newOVRTrackerPoseinstance allocated withmemAlloc.static OVRTrackerPose.Buffermalloc(int capacity)Returns a newOVRTrackerPose.Bufferinstance allocated withmemAlloc.static OVRTrackerPose.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRTrackerPose.Bufferinstance allocated on the specifiedMemoryStack.static OVRTrackerPosemalloc(org.lwjgl.system.MemoryStack stack)Returns a newOVRTrackerPoseinstance allocated on the specifiedMemoryStack.static OVRTrackerPosemallocStack()Deprecated.static OVRTrackerPose.BuffermallocStack(int capacity)Deprecated.static OVRTrackerPose.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static OVRTrackerPosemallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static OVRPosefnLeveledPose(long struct)Unsafe version ofLeveledPose().static OVRPosefnPose(long struct)Unsafe version ofPose().static intnTrackerFlags(long struct)Unsafe version ofTrackerFlags().OVRPosefPose()the sensor's pose.intsizeof()intTrackerFlags()ovrTrackerFlags.
-
-
-
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()
ovrTrackerFlags.
-
Pose
public OVRPosef Pose()
the sensor's pose. This pose includes sensor tilt (roll and pitch). For a leveled coordinate system useLeveledPose.
-
LeveledPose
public OVRPosef 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.
-
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
@Deprecated public static OVRTrackerPose mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRTrackerPose callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRTrackerPose mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRTrackerPose callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRTrackerPose.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static OVRTrackerPose.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRTrackerPose.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 OVRTrackerPose.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static OVRTrackerPose malloc(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTrackerPoseinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static OVRTrackerPose calloc(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
-
malloc
public static OVRTrackerPose.Buffer malloc(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
-
calloc
public static OVRTrackerPose.Buffer calloc(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().
-
-