Package org.lwjgl.openxr
Class XrFrustumfKHR
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct XrFrustumfKHR {
{@link XrPosef XrPosef} pose;
{@link XrFovf XrFovf} fov;
float nearZ;
float farZ;
}
-
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
ConstructorsConstructorDescriptionXrFrustumfKHR
(ByteBuffer container) Creates aXrFrustumfKHR
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrFrustumfKHR
calloc()
Returns a newXrFrustumfKHR
instance allocated withmemCalloc
.static XrFrustumfKHR.Buffer
calloc
(int capacity) Returns a newXrFrustumfKHR.Buffer
instance allocated withmemCalloc
.static XrFrustumfKHR.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newXrFrustumfKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrFrustumfKHR
calloc
(MemoryStack stack) Returns a newXrFrustumfKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrFrustumfKHR
create()
Returns a newXrFrustumfKHR
instance allocated withBufferUtils
.static XrFrustumfKHR.Buffer
create
(int capacity) Returns a newXrFrustumfKHR.Buffer
instance allocated withBufferUtils
.static XrFrustumfKHR
create
(long address) Returns a newXrFrustumfKHR
instance for the specified memory address.static XrFrustumfKHR.Buffer
create
(long address, int capacity) Create aXrFrustumfKHR.Buffer
instance at the specified memory.static @Nullable XrFrustumfKHR
createSafe
(long address) static @Nullable XrFrustumfKHR.Buffer
createSafe
(long address, int capacity) farZ
(float value) Sets the specified value to thefarZ
field.Passes thefov
field to the specifiedConsumer
.Copies the specifiedXrFovf
to thefov
field.static XrFrustumfKHR
malloc()
Returns a newXrFrustumfKHR
instance allocated withmemAlloc
.static XrFrustumfKHR.Buffer
malloc
(int capacity) Returns a newXrFrustumfKHR.Buffer
instance allocated withmemAlloc
.static XrFrustumfKHR.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newXrFrustumfKHR.Buffer
instance allocated on the specifiedMemoryStack
.static XrFrustumfKHR
malloc
(MemoryStack stack) Returns a newXrFrustumfKHR
instance allocated on the specifiedMemoryStack
.nearZ
(float value) Sets the specified value to thenearZ
field.Passes thepose
field to the specifiedConsumer
.Copies the specifiedXrPosef
to thepose
field.set
(XrFrustumfKHR src) Copies the specified struct data to this struct.Initializes this struct with the specified values.Methods inherited from class org.lwjgl.openxr.XrFrustumf
farZ, fov, nearZ, nfarZ, nfarZ, nfov, nfov, nnearZ, nnearZ, npose, npose, pose, 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
-
XrFrustumfKHR
Creates aXrFrustumfKHR
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
-
pose
Copies the specifiedXrPosef
to thepose
field.- Overrides:
pose
in classXrFrustumf
-
pose
Passes thepose
field to the specifiedConsumer
.- Overrides:
pose
in classXrFrustumf
-
fov
Copies the specifiedXrFovf
to thefov
field.- Overrides:
fov
in classXrFrustumf
-
fov
Passes thefov
field to the specifiedConsumer
.- Overrides:
fov
in classXrFrustumf
-
nearZ
Sets the specified value to thenearZ
field.- Overrides:
nearZ
in classXrFrustumf
-
farZ
Sets the specified value to thefarZ
field.- Overrides:
farZ
in classXrFrustumf
-
set
Initializes this struct with the specified values.- Overrides:
set
in classXrFrustumf
-
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newXrFrustumfKHR
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newXrFrustumfKHR
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newXrFrustumfKHR
instance allocated withBufferUtils
. -
create
Returns a newXrFrustumfKHR
instance for the specified memory address. -
createSafe
-
malloc
Returns a newXrFrustumfKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newXrFrustumfKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newXrFrustumfKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aXrFrustumfKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newXrFrustumfKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newXrFrustumfKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newXrFrustumfKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newXrFrustumfKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-