Package org.lwjgl.openvr
Class SpatialAnchorPose
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<SpatialAnchorPose>
org.lwjgl.openvr.SpatialAnchorPose
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class SpatialAnchorPose
extends org.lwjgl.system.Struct<SpatialAnchorPose>
implements org.lwjgl.system.NativeResource
Layout
struct SpatialAnchorPose_t {
HmdMatrix34_t mAnchorToAbsoluteTracking;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionSpatialAnchorPose(ByteBuffer container) Creates aSpatialAnchorPoseinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic SpatialAnchorPosecalloc()Returns a newSpatialAnchorPoseinstance allocated withmemCalloc.static SpatialAnchorPose.Buffercalloc(int capacity) Returns a newSpatialAnchorPose.Bufferinstance allocated withmemCalloc.static SpatialAnchorPose.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newSpatialAnchorPose.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpatialAnchorPosecalloc(org.lwjgl.system.MemoryStack stack) Returns a newSpatialAnchorPoseinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpatialAnchorPoseDeprecated.static SpatialAnchorPose.BuffercallocStack(int capacity) Deprecated.static SpatialAnchorPose.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static SpatialAnchorPosecallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.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 @Nullable SpatialAnchorPosecreateSafe(long address) static @Nullable 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 SpatialAnchorPose.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newSpatialAnchorPose.Bufferinstance allocated on the specifiedMemoryStack.static SpatialAnchorPosemalloc(org.lwjgl.system.MemoryStack stack) Returns a newSpatialAnchorPoseinstance allocated on the specifiedMemoryStack.static SpatialAnchorPoseDeprecated.static SpatialAnchorPose.BuffermallocStack(int capacity) Deprecated.static SpatialAnchorPose.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static SpatialAnchorPosemallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static HmdMatrix34nmAnchorToAbsoluteTracking(long struct) Unsafe version ofmAnchorToAbsoluteTracking().intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
MANCHORTOABSOLUTETRACKING
public static final int MANCHORTOABSOLUTETRACKINGThe struct member offsets.
-
-
Constructor Details
-
SpatialAnchorPose
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<SpatialAnchorPose>
-
mAnchorToAbsoluteTracking
- Returns:
- a
HmdMatrix34view of themAnchorToAbsoluteTrackingfield.
-
malloc
Returns a newSpatialAnchorPoseinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSpatialAnchorPoseinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSpatialAnchorPoseinstance allocated withBufferUtils. -
create
Returns a newSpatialAnchorPoseinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSpatialAnchorPose.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSpatialAnchorPose.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSpatialAnchorPose.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSpatialAnchorPose.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
@Deprecated public static SpatialAnchorPose.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 SpatialAnchorPose.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newSpatialAnchorPoseinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSpatialAnchorPoseinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSpatialAnchorPose.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSpatialAnchorPose.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nmAnchorToAbsoluteTracking
Unsafe version ofmAnchorToAbsoluteTracking().
-