Package org.lwjgl.openvr
Class SpatialAnchorPose
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.SpatialAnchorPose
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class SpatialAnchorPose extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct SpatialAnchorPose_t {HmdMatrix34_tmAnchorToAbsoluteTracking; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpatialAnchorPose.BufferAn array ofSpatialAnchorPosestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMANCHORTOABSOLUTETRACKINGThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description SpatialAnchorPose(java.nio.ByteBuffer container)Creates aSpatialAnchorPoseinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SpatialAnchorPosecalloc()Returns a newSpatialAnchorPoseinstance allocated withmemCalloc.static SpatialAnchorPose.Buffercalloc(int capacity)Returns a newSpatialAnchorPose.Bufferinstance allocated withmemCalloc.static SpatialAnchorPosecallocStack()Returns a newSpatialAnchorPoseinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static SpatialAnchorPose.BuffercallocStack(int capacity)Returns a newSpatialAnchorPose.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static SpatialAnchorPose.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSpatialAnchorPose.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpatialAnchorPosecallocStack(org.lwjgl.system.MemoryStack stack)Returns a newSpatialAnchorPoseinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpatialAnchorPosecreate()Returns a newSpatialAnchorPoseinstance allocated withBufferUtils.static SpatialAnchorPose.Buffercreate(int capacity)Returns a newSpatialAnchorPose.Bufferinstance allocated withBufferUtils.static SpatialAnchorPosecreate(long address)Returns a newSpatialAnchorPoseinstance for the specified memory address.static SpatialAnchorPose.Buffercreate(long address, int capacity)Create aSpatialAnchorPose.Bufferinstance at the specified memory.static SpatialAnchorPosecreateSafe(long address)static SpatialAnchorPose.BuffercreateSafe(long address, int capacity)static SpatialAnchorPosemalloc()Returns a newSpatialAnchorPoseinstance allocated withmemAlloc.static SpatialAnchorPose.Buffermalloc(int capacity)Returns a newSpatialAnchorPose.Bufferinstance allocated withmemAlloc.static SpatialAnchorPosemallocStack()Returns a newSpatialAnchorPoseinstance allocated on the thread-localMemoryStack.static SpatialAnchorPose.BuffermallocStack(int capacity)Returns a newSpatialAnchorPose.Bufferinstance allocated on the thread-localMemoryStack.static SpatialAnchorPose.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSpatialAnchorPose.Bufferinstance allocated on the specifiedMemoryStack.static SpatialAnchorPosemallocStack(org.lwjgl.system.MemoryStack stack)Returns a newSpatialAnchorPoseinstance allocated on the specifiedMemoryStack.HmdMatrix34mAnchorToAbsoluteTracking()Returns aHmdMatrix34view of themAnchorToAbsoluteTrackingfield.static HmdMatrix34nmAnchorToAbsoluteTracking(long struct)Unsafe version ofmAnchorToAbsoluteTracking().intsizeof()
-
-
-
Constructor Detail
-
SpatialAnchorPose
public SpatialAnchorPose(java.nio.ByteBuffer container)
Creates aSpatialAnchorPoseinstance 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
-
mAnchorToAbsoluteTracking
public HmdMatrix34 mAnchorToAbsoluteTracking()
Returns aHmdMatrix34view of themAnchorToAbsoluteTrackingfield.
-
malloc
public static SpatialAnchorPose malloc()
Returns a newSpatialAnchorPoseinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static SpatialAnchorPose calloc()
Returns a newSpatialAnchorPoseinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static SpatialAnchorPose create()
Returns a newSpatialAnchorPoseinstance allocated withBufferUtils.
-
create
public static SpatialAnchorPose create(long address)
Returns a newSpatialAnchorPoseinstance for the specified memory address.
-
createSafe
@Nullable public static SpatialAnchorPose createSafe(long address)
-
malloc
public static SpatialAnchorPose.Buffer malloc(int capacity)
Returns a newSpatialAnchorPose.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static SpatialAnchorPose.Buffer calloc(int capacity)
Returns a newSpatialAnchorPose.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static SpatialAnchorPose.Buffer create(int capacity)
Returns a newSpatialAnchorPose.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static SpatialAnchorPose.Buffer create(long address, int capacity)
Create aSpatialAnchorPose.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static SpatialAnchorPose.Buffer createSafe(long address, int capacity)
-
mallocStack
public static SpatialAnchorPose mallocStack()
Returns a newSpatialAnchorPoseinstance allocated on the thread-localMemoryStack.
-
callocStack
public static SpatialAnchorPose callocStack()
Returns a newSpatialAnchorPoseinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static SpatialAnchorPose mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newSpatialAnchorPoseinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static SpatialAnchorPose callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newSpatialAnchorPoseinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static SpatialAnchorPose.Buffer mallocStack(int capacity)
Returns a newSpatialAnchorPose.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static SpatialAnchorPose.Buffer callocStack(int capacity)
Returns a newSpatialAnchorPose.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static SpatialAnchorPose.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSpatialAnchorPose.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static SpatialAnchorPose.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSpatialAnchorPose.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nmAnchorToAbsoluteTracking
public static HmdMatrix34 nmAnchorToAbsoluteTracking(long struct)
Unsafe version ofmAnchorToAbsoluteTracking().
-
-