Package org.lwjgl.openvr
Class SpatialAnchorPose
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Layout
struct SpatialAnchorPose_t {
HmdMatrix34_t
mAnchorToAbsoluteTracking;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionSpatialAnchorPose
(ByteBuffer container) Creates aSpatialAnchorPose
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic SpatialAnchorPose
calloc()
Returns a newSpatialAnchorPose
instance allocated withmemCalloc
.static SpatialAnchorPose.Buffer
calloc
(int capacity) Returns a newSpatialAnchorPose.Buffer
instance allocated withmemCalloc
.static SpatialAnchorPose.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newSpatialAnchorPose.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SpatialAnchorPose
calloc
(MemoryStack stack) Returns a newSpatialAnchorPose
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SpatialAnchorPose
Deprecated.static SpatialAnchorPose.Buffer
callocStack
(int capacity) Deprecated.static SpatialAnchorPose.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static SpatialAnchorPose
callocStack
(MemoryStack stack) Deprecated.static SpatialAnchorPose
create()
Returns a newSpatialAnchorPose
instance allocated withBufferUtils
.static SpatialAnchorPose.Buffer
create
(int capacity) Returns a newSpatialAnchorPose.Buffer
instance allocated withBufferUtils
.static SpatialAnchorPose
create
(long address) Returns a newSpatialAnchorPose
instance for the specified memory address.static SpatialAnchorPose.Buffer
create
(long address, int capacity) Create aSpatialAnchorPose.Buffer
instance at the specified memory.static SpatialAnchorPose
createSafe
(long address) static SpatialAnchorPose.Buffer
createSafe
(long address, int capacity) static SpatialAnchorPose
malloc()
Returns a newSpatialAnchorPose
instance allocated withmemAlloc
.static SpatialAnchorPose.Buffer
malloc
(int capacity) Returns a newSpatialAnchorPose.Buffer
instance allocated withmemAlloc
.static SpatialAnchorPose.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newSpatialAnchorPose.Buffer
instance allocated on the specifiedMemoryStack
.static SpatialAnchorPose
malloc
(MemoryStack stack) Returns a newSpatialAnchorPose
instance allocated on the specifiedMemoryStack
.static SpatialAnchorPose
Deprecated.static SpatialAnchorPose.Buffer
mallocStack
(int capacity) Deprecated.static SpatialAnchorPose.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static SpatialAnchorPose
mallocStack
(MemoryStack stack) Deprecated.static HmdMatrix34
nmAnchorToAbsoluteTracking
(long struct) Unsafe version ofmAnchorToAbsoluteTracking()
.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aSpatialAnchorPose
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<SpatialAnchorPose>
-
mAnchorToAbsoluteTracking
- Returns:
- a
HmdMatrix34
view of themAnchorToAbsoluteTracking
field.
-
malloc
Returns a newSpatialAnchorPose
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSpatialAnchorPose
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSpatialAnchorPose
instance allocated withBufferUtils
. -
create
Returns a newSpatialAnchorPose
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSpatialAnchorPose.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSpatialAnchorPose.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSpatialAnchorPose.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSpatialAnchorPose.Buffer
instance 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.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newSpatialAnchorPose
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSpatialAnchorPose
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSpatialAnchorPose.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSpatialAnchorPose.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nmAnchorToAbsoluteTracking
Unsafe version ofmAnchorToAbsoluteTracking()
.
-