Package org.lwjgl.openxr
Class XrSpherefKHR
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct XrSpherefKHR {
{@link XrPosef XrPosef} center;
float radius;
}
-
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 interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionXrSpherefKHR
(ByteBuffer container) Creates aXrSpherefKHR
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrSpherefKHR
calloc()
Returns a newXrSpherefKHR
instance allocated withmemCalloc
.static XrSpherefKHR.Buffer
calloc
(int capacity) Returns a newXrSpherefKHR.Buffer
instance allocated withmemCalloc
.static XrSpherefKHR.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newXrSpherefKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrSpherefKHR
calloc
(MemoryStack stack) Returns a newXrSpherefKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.Passes thecenter
field to the specifiedConsumer
.Copies the specifiedXrPosef
to thecenter
field.static XrSpherefKHR
create()
Returns a newXrSpherefKHR
instance allocated withBufferUtils
.static XrSpherefKHR.Buffer
create
(int capacity) Returns a newXrSpherefKHR.Buffer
instance allocated withBufferUtils
.static XrSpherefKHR
create
(long address) Returns a newXrSpherefKHR
instance for the specified memory address.static XrSpherefKHR.Buffer
create
(long address, int capacity) Create aXrSpherefKHR.Buffer
instance at the specified memory.static @Nullable XrSpherefKHR
createSafe
(long address) static @Nullable XrSpherefKHR.Buffer
createSafe
(long address, int capacity) static XrSpherefKHR
malloc()
Returns a newXrSpherefKHR
instance allocated withmemAlloc
.static XrSpherefKHR.Buffer
malloc
(int capacity) Returns a newXrSpherefKHR.Buffer
instance allocated withmemAlloc
.static XrSpherefKHR.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newXrSpherefKHR.Buffer
instance allocated on the specifiedMemoryStack
.static XrSpherefKHR
malloc
(MemoryStack stack) Returns a newXrSpherefKHR
instance allocated on the specifiedMemoryStack
.radius
(float value) Sets the specified value to theradius
field.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, 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
-
XrSpherefKHR
Creates aXrSpherefKHR
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
-
center
Copies the specifiedXrPosef
to thecenter
field. -
center
Passes thecenter
field to the specifiedConsumer
. -
radius
Sets the specified value to theradius
field. -
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 newXrSpherefKHR
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newXrSpherefKHR
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newXrSpherefKHR
instance allocated withBufferUtils
. -
create
Returns a newXrSpherefKHR
instance for the specified memory address. -
createSafe
-
malloc
Returns a newXrSpherefKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newXrSpherefKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newXrSpherefKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aXrSpherefKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newXrSpherefKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newXrSpherefKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newXrSpherefKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newXrSpherefKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-