Package org.lwjgl.openxr
Class XrSceneFrustumBoundMSFT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrSceneFrustumBoundMSFT>
org.lwjgl.openxr.XrSceneFrustumBoundMSFT
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSceneFrustumBoundMSFT
extends org.lwjgl.system.Struct<XrSceneFrustumBoundMSFT>
implements org.lwjgl.system.NativeResource
Describe a scene frustum bounds.
Description
The runtime must return ERROR_VALIDATION_FAILURE if farDistance is less than or equal to zero. The runtime must return ERROR_VALIDATION_FAILURE if the fov angles are not between between -π/2 and π/2 exclusively.
Valid Usage (Implicit)
- The
XR_MSFT_scene_understandingextension must be enabled prior to usingXrSceneFrustumBoundMSFT
See Also
XrFovf, XrPosef, XrSceneBoundsMSFT
Layout
struct XrSceneFrustumBoundMSFT {
XrPosef pose();
XrFovf fov();
float farDistance();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrSceneFrustumBoundMSFT(ByteBuffer container) Creates aXrSceneFrustumBoundMSFTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrSceneFrustumBoundMSFTcalloc()Returns a newXrSceneFrustumBoundMSFTinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrSceneFrustumBoundMSFT.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrSceneFrustumBoundMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneFrustumBoundMSFTcalloc(org.lwjgl.system.MemoryStack stack) Returns a newXrSceneFrustumBoundMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneFrustumBoundMSFTcreate()Returns a newXrSceneFrustumBoundMSFTinstance allocated withBufferUtils.create(int capacity) Returns a newXrSceneFrustumBoundMSFT.Bufferinstance allocated withBufferUtils.static XrSceneFrustumBoundMSFTcreate(long address) Returns a newXrSceneFrustumBoundMSFTinstance for the specified memory address.create(long address, int capacity) Create aXrSceneFrustumBoundMSFT.Bufferinstance at the specified memory.static @Nullable XrSceneFrustumBoundMSFTcreateSafe(long address) static @Nullable XrSceneFrustumBoundMSFT.BuffercreateSafe(long address, int capacity) floatthe positive distance of the far plane of the frustum bound along the -Z direction of the frustum bound space.farDistance(float value) Sets the specified value to thefarDistance()field.fov()static XrSceneFrustumBoundMSFTmalloc()Returns a newXrSceneFrustumBoundMSFTinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrSceneFrustumBoundMSFT.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrSceneFrustumBoundMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrSceneFrustumBoundMSFTmalloc(org.lwjgl.system.MemoryStack stack) Returns a newXrSceneFrustumBoundMSFTinstance allocated on the specifiedMemoryStack.static floatnfarDistance(long struct) Unsafe version offarDistance().static voidnfarDistance(long struct, float value) Unsafe version offarDistance.static XrFovfnfov(long struct) Unsafe version offov().static voidUnsafe version offov.static XrPosefnpose(long struct) Unsafe version ofpose().static voidUnsafe version ofpose.pose()anXrPosefdefining the position and orientation of the tip of the frustum bound within the reference frame of the correspondingXrSceneBoundsMSFT::space.Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
POSE
public static final int POSEThe struct member offsets. -
FOV
public static final int FOVThe struct member offsets. -
FARDISTANCE
public static final int FARDISTANCEThe struct member offsets.
-
-
Constructor Details
-
XrSceneFrustumBoundMSFT
Creates aXrSceneFrustumBoundMSFTinstance 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
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<XrSceneFrustumBoundMSFT>
-
pose
anXrPosefdefining the position and orientation of the tip of the frustum bound within the reference frame of the correspondingXrSceneBoundsMSFT::space. -
fov
-
farDistance
public float farDistance()the positive distance of the far plane of the frustum bound along the -Z direction of the frustum bound space. -
pose
-
pose
-
fov
-
fov
-
farDistance
Sets the specified value to thefarDistance()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 newXrSceneFrustumBoundMSFTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrSceneFrustumBoundMSFTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrSceneFrustumBoundMSFTinstance allocated withBufferUtils. -
create
Returns a newXrSceneFrustumBoundMSFTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrSceneFrustumBoundMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrSceneFrustumBoundMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrSceneFrustumBoundMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrSceneFrustumBoundMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrSceneFrustumBoundMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrSceneFrustumBoundMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSceneFrustumBoundMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrSceneFrustumBoundMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static XrSceneFrustumBoundMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrSceneFrustumBoundMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
npose
Unsafe version ofpose(). -
nfov
Unsafe version offov(). -
nfarDistance
public static float nfarDistance(long struct) Unsafe version offarDistance(). -
npose
Unsafe version ofpose. -
nfov
Unsafe version offov. -
nfarDistance
public static void nfarDistance(long struct, float value) Unsafe version offarDistance.
-