Package org.lwjgl.openxr
Class XrSpherefKHR
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct XrSpherefKHR {
XrPosef center;
float radius;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrSpherefKHR(ByteBuffer container) Creates aXrSpherefKHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrSpherefKHRcalloc()Returns a newXrSpherefKHRinstance allocated withmemCalloc.static XrSpherefKHR.Buffercalloc(int capacity) Returns a newXrSpherefKHR.Bufferinstance allocated withmemCalloc.static XrSpherefKHR.Buffercalloc(int capacity, MemoryStack stack) Returns a newXrSpherefKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSpherefKHRcalloc(MemoryStack stack) Returns a newXrSpherefKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.Passes thecenterfield to the specifiedConsumer.Copies the specifiedXrPosefto thecenterfield.static XrSpherefKHRcreate()Returns a newXrSpherefKHRinstance allocated withBufferUtils.static XrSpherefKHR.Buffercreate(int capacity) Returns a newXrSpherefKHR.Bufferinstance allocated withBufferUtils.static XrSpherefKHRcreate(long address) Returns a newXrSpherefKHRinstance for the specified memory address.static XrSpherefKHR.Buffercreate(long address, int capacity) Create aXrSpherefKHR.Bufferinstance at the specified memory.static @Nullable XrSpherefKHRcreateSafe(long address) static @Nullable XrSpherefKHR.BuffercreateSafe(long address, int capacity) static XrSpherefKHRmalloc()Returns a newXrSpherefKHRinstance allocated withmemAlloc.static XrSpherefKHR.Buffermalloc(int capacity) Returns a newXrSpherefKHR.Bufferinstance allocated withmemAlloc.static XrSpherefKHR.Buffermalloc(int capacity, MemoryStack stack) Returns a newXrSpherefKHR.Bufferinstance allocated on the specifiedMemoryStack.static XrSpherefKHRmalloc(MemoryStack stack) Returns a newXrSpherefKHRinstance allocated on the specifiedMemoryStack.radius(float value) Sets the specified value to theradiusfield.Initializes this struct with the specified values.set(XrSpherefKHR src) Copies the specified struct data to this struct.Methods inherited from class org.lwjgl.openxr.XrSpheref
center, ncenter, ncenter, nradius, nradius, radius, set, sizeofMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
XrSpherefKHR
Creates aXrSpherefKHRinstance 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
-
center
Copies the specifiedXrPosefto thecenterfield. -
center
Passes thecenterfield to the specifiedConsumer. -
radius
Sets the specified value to theradiusfield. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newXrSpherefKHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrSpherefKHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrSpherefKHRinstance allocated withBufferUtils. -
create
Returns a newXrSpherefKHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrSpherefKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrSpherefKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrSpherefKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrSpherefKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrSpherefKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrSpherefKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrSpherefKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrSpherefKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-