Package org.lwjgl.openxr
Class XrSpaceLocationDataKHR
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrSpaceLocationData>
org.lwjgl.openxr.XrSpaceLocationData
org.lwjgl.openxr.XrSpaceLocationDataKHR
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct XrSpaceLocationDataKHR {
XrSpaceLocationFlags locationFlags;
{@link XrPosef XrPosef} pose;
}
-
Nested Class Summary
Nested ClassesNested 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
Fields inherited from class org.lwjgl.openxr.XrSpaceLocationData
ALIGNOF, LOCATIONFLAGS, POSE, SIZEOF
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionXrSpaceLocationDataKHR
(ByteBuffer container) Creates aXrSpaceLocationDataKHR
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrSpaceLocationDataKHR
calloc()
Returns a newXrSpaceLocationDataKHR
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newXrSpaceLocationDataKHR.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newXrSpaceLocationDataKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrSpaceLocationDataKHR
calloc
(MemoryStack stack) Returns a newXrSpaceLocationDataKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrSpaceLocationDataKHR
create()
Returns a newXrSpaceLocationDataKHR
instance allocated withBufferUtils
.create
(int capacity) Returns a newXrSpaceLocationDataKHR.Buffer
instance allocated withBufferUtils
.static XrSpaceLocationDataKHR
create
(long address) Returns a newXrSpaceLocationDataKHR
instance for the specified memory address.create
(long address, int capacity) Create aXrSpaceLocationDataKHR.Buffer
instance at the specified memory.static @Nullable XrSpaceLocationDataKHR
createSafe
(long address) static @Nullable XrSpaceLocationDataKHR.Buffer
createSafe
(long address, int capacity) static XrSpaceLocationDataKHR
malloc()
Returns a newXrSpaceLocationDataKHR
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newXrSpaceLocationDataKHR.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newXrSpaceLocationDataKHR.Buffer
instance allocated on the specifiedMemoryStack
.static XrSpaceLocationDataKHR
malloc
(MemoryStack stack) Returns a newXrSpaceLocationDataKHR
instance allocated on the specifiedMemoryStack
.Methods inherited from class org.lwjgl.openxr.XrSpaceLocationData
locationFlags, nlocationFlags, npose, pose, sizeof
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
XrSpaceLocationDataKHR
Creates aXrSpaceLocationDataKHR
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
-
malloc
Returns a newXrSpaceLocationDataKHR
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newXrSpaceLocationDataKHR
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newXrSpaceLocationDataKHR
instance allocated withBufferUtils
. -
create
Returns a newXrSpaceLocationDataKHR
instance for the specified memory address. -
createSafe
-
malloc
Returns a newXrSpaceLocationDataKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newXrSpaceLocationDataKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newXrSpaceLocationDataKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aXrSpaceLocationDataKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newXrSpaceLocationDataKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newXrSpaceLocationDataKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newXrSpaceLocationDataKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newXrSpaceLocationDataKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-