Package org.lwjgl.openxr
Class XrExtent3DfKHR
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct XrExtent3DfKHR {
float width;
float height;
float depth;
}
-
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
ConstructorsConstructorDescriptionXrExtent3DfKHR
(ByteBuffer container) Creates aXrExtent3DfKHR
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrExtent3DfKHR
calloc()
Returns a newXrExtent3DfKHR
instance allocated withmemCalloc
.static XrExtent3DfKHR.Buffer
calloc
(int capacity) Returns a newXrExtent3DfKHR.Buffer
instance allocated withmemCalloc
.static XrExtent3DfKHR.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newXrExtent3DfKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrExtent3DfKHR
calloc
(MemoryStack stack) Returns a newXrExtent3DfKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrExtent3DfKHR
create()
Returns a newXrExtent3DfKHR
instance allocated withBufferUtils
.static XrExtent3DfKHR.Buffer
create
(int capacity) Returns a newXrExtent3DfKHR.Buffer
instance allocated withBufferUtils
.static XrExtent3DfKHR
create
(long address) Returns a newXrExtent3DfKHR
instance for the specified memory address.static XrExtent3DfKHR.Buffer
create
(long address, int capacity) Create aXrExtent3DfKHR.Buffer
instance at the specified memory.static @Nullable XrExtent3DfKHR
createSafe
(long address) static @Nullable XrExtent3DfKHR.Buffer
createSafe
(long address, int capacity) depth
(float value) Sets the specified value to thedepth
field.height
(float value) Sets the specified value to theheight
field.static XrExtent3DfKHR
malloc()
Returns a newXrExtent3DfKHR
instance allocated withmemAlloc
.static XrExtent3DfKHR.Buffer
malloc
(int capacity) Returns a newXrExtent3DfKHR.Buffer
instance allocated withmemAlloc
.static XrExtent3DfKHR.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newXrExtent3DfKHR.Buffer
instance allocated on the specifiedMemoryStack
.static XrExtent3DfKHR
malloc
(MemoryStack stack) Returns a newXrExtent3DfKHR
instance allocated on the specifiedMemoryStack
.set
(float width, float height, float depth) Initializes this struct with the specified values.set
(XrExtent3DfKHR src) Copies the specified struct data to this struct.width
(float value) Sets the specified value to thewidth
field.Methods inherited from class org.lwjgl.openxr.XrExtent3Df
depth, height, ndepth, ndepth, nheight, nheight, nwidth, nwidth, set, sizeof, width
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
-
XrExtent3DfKHR
Creates aXrExtent3DfKHR
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
-
width
Sets the specified value to thewidth
field.- Overrides:
width
in classXrExtent3Df
-
height
Sets the specified value to theheight
field.- Overrides:
height
in classXrExtent3Df
-
depth
Sets the specified value to thedepth
field.- Overrides:
depth
in classXrExtent3Df
-
set
Initializes this struct with the specified values.- Overrides:
set
in classXrExtent3Df
-
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newXrExtent3DfKHR
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newXrExtent3DfKHR
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newXrExtent3DfKHR
instance allocated withBufferUtils
. -
create
Returns a newXrExtent3DfKHR
instance for the specified memory address. -
createSafe
-
malloc
Returns a newXrExtent3DfKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newXrExtent3DfKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newXrExtent3DfKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aXrExtent3DfKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newXrExtent3DfKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newXrExtent3DfKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newXrExtent3DfKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newXrExtent3DfKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-