Package org.lwjgl.openxr
Class XrSceneBoundsMSFT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrSceneBoundsMSFT>
org.lwjgl.openxr.XrSceneBoundsMSFT
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSceneBoundsMSFT
extends org.lwjgl.system.Struct<XrSceneBoundsMSFT>
implements org.lwjgl.system.NativeResource
The scene bounds.
Valid Usage (Implicit)
- The
XR_MSFT_scene_understandingextension must be enabled prior to usingXrSceneBoundsMSFT spacemust be a validXrSpacehandle- If
sphereCountis not 0,spheresmust be a pointer to an array ofsphereCountXrSceneSphereBoundMSFTstructures - If
boxCountis not 0,boxesmust be a pointer to an array ofboxCountXrSceneOrientedBoxBoundMSFTstructures - If
frustumCountis not 0,frustumsmust be a pointer to an array offrustumCountXrSceneFrustumBoundMSFTstructures
See Also
XrNewSceneComputeInfoMSFT, XrSceneFrustumBoundMSFT, XrSceneOrientedBoxBoundMSFT, XrSceneSphereBoundMSFT, ComputeNewSceneMSFT
Layout
struct XrSceneBoundsMSFT {
XrSpace space();
XrTime time();
uint32_t sphereCount();
XrSceneSphereBoundMSFT const * spheres();
uint32_t boxCount();
XrSceneOrientedBoxBoundMSFT const * boxes();
uint32_t frustumCount();
XrSceneFrustumBoundMSFT const * frustums();
}-
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 member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrSceneBoundsMSFT(ByteBuffer container) Creates aXrSceneBoundsMSFTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintboxCount()the number of oriented box bounds.boxCount(int value) Sets the specified value to theboxCount()field.@Nullable XrSceneOrientedBoxBoundMSFT.Bufferboxes()an array ofXrSceneOrientedBoxBoundMSFT.boxes(@Nullable XrSceneOrientedBoxBoundMSFT.Buffer value) Sets the address of the specifiedXrSceneOrientedBoxBoundMSFT.Bufferto theboxes()field.static XrSceneBoundsMSFTcalloc()Returns a newXrSceneBoundsMSFTinstance allocated withmemCalloc.static XrSceneBoundsMSFT.Buffercalloc(int capacity) Returns a newXrSceneBoundsMSFT.Bufferinstance allocated withmemCalloc.static XrSceneBoundsMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrSceneBoundsMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneBoundsMSFTcalloc(org.lwjgl.system.MemoryStack stack) Returns a newXrSceneBoundsMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneBoundsMSFTcreate()Returns a newXrSceneBoundsMSFTinstance allocated withBufferUtils.static XrSceneBoundsMSFT.Buffercreate(int capacity) Returns a newXrSceneBoundsMSFT.Bufferinstance allocated withBufferUtils.static XrSceneBoundsMSFTcreate(long address) Returns a newXrSceneBoundsMSFTinstance for the specified memory address.static XrSceneBoundsMSFT.Buffercreate(long address, int capacity) Create aXrSceneBoundsMSFT.Bufferinstance at the specified memory.static @Nullable XrSceneBoundsMSFTcreateSafe(long address) static @Nullable XrSceneBoundsMSFT.BuffercreateSafe(long address, int capacity) intthe number of frustum bounds.frustumCount(int value) Sets the specified value to thefrustumCount()field.@Nullable XrSceneFrustumBoundMSFT.Bufferfrustums()an array ofXrSceneFrustumBoundMSFT.frustums(@Nullable XrSceneFrustumBoundMSFT.Buffer value) Sets the address of the specifiedXrSceneFrustumBoundMSFT.Bufferto thefrustums()field.static XrSceneBoundsMSFTmalloc()Returns a newXrSceneBoundsMSFTinstance allocated withmemAlloc.static XrSceneBoundsMSFT.Buffermalloc(int capacity) Returns a newXrSceneBoundsMSFT.Bufferinstance allocated withmemAlloc.static XrSceneBoundsMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrSceneBoundsMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrSceneBoundsMSFTmalloc(org.lwjgl.system.MemoryStack stack) Returns a newXrSceneBoundsMSFTinstance allocated on the specifiedMemoryStack.static intnboxCount(long struct) Unsafe version ofboxCount().static voidnboxCount(long struct, int value) Sets the specified value to theboxCountfield of the specifiedstruct.static @Nullable XrSceneOrientedBoxBoundMSFT.Buffernboxes(long struct) Unsafe version ofboxes().static voidnboxes(long struct, @Nullable XrSceneOrientedBoxBoundMSFT.Buffer value) Unsafe version ofboxes.static intnfrustumCount(long struct) Unsafe version offrustumCount().static voidnfrustumCount(long struct, int value) Sets the specified value to thefrustumCountfield of the specifiedstruct.static @Nullable XrSceneFrustumBoundMSFT.Buffernfrustums(long struct) Unsafe version offrustums().static voidnfrustums(long struct, @Nullable XrSceneFrustumBoundMSFT.Buffer value) Unsafe version offrustums.static longnspace(long struct) Unsafe version ofspace().static voidUnsafe version ofspace.static intnsphereCount(long struct) Unsafe version ofsphereCount().static voidnsphereCount(long struct, int value) Sets the specified value to thesphereCountfield of the specifiedstruct.static @Nullable XrSceneSphereBoundMSFT.Buffernspheres(long struct) Unsafe version ofspheres().static voidnspheres(long struct, @Nullable XrSceneSphereBoundMSFT.Buffer value) Unsafe version ofspheres.static longntime(long struct) Unsafe version oftime().static voidntime(long struct, long value) Unsafe version oftime.set(XrSceneBoundsMSFT src) Copies the specified struct data to this struct.set(XrSpace space, long time, int sphereCount, @Nullable XrSceneSphereBoundMSFT.Buffer spheres, int boxCount, @Nullable XrSceneOrientedBoxBoundMSFT.Buffer boxes, int frustumCount, @Nullable XrSceneFrustumBoundMSFT.Buffer frustums) Initializes this struct with the specified values.intsizeof()longspace()a handle to theXrSpacein which the bounds are specified.Sets the specified value to thespace()field.intthe number of sphere bounds.sphereCount(int value) Sets the specified value to thesphereCount()field.@Nullable XrSceneSphereBoundMSFT.Bufferspheres()an array ofXrSceneSphereBoundMSFT.spheres(@Nullable XrSceneSphereBoundMSFT.Buffer value) Sets the address of the specifiedXrSceneSphereBoundMSFT.Bufferto thespheres()field.longtime()theXrTimeat which the bounds will be evaluated withinspace.time(long value) Sets the specified value to thetime()field.static voidvalidate(long struct) Validates pointer members that should not beNULL.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. -
SPACE
public static final int SPACEThe struct member offsets. -
TIME
public static final int TIMEThe struct member offsets. -
SPHERECOUNT
public static final int SPHERECOUNTThe struct member offsets. -
SPHERES
public static final int SPHERESThe struct member offsets. -
BOXCOUNT
public static final int BOXCOUNTThe struct member offsets. -
BOXES
public static final int BOXESThe struct member offsets. -
FRUSTUMCOUNT
public static final int FRUSTUMCOUNTThe struct member offsets. -
FRUSTUMS
public static final int FRUSTUMSThe struct member offsets.
-
-
Constructor Details
-
XrSceneBoundsMSFT
Creates aXrSceneBoundsMSFTinstance 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<XrSceneBoundsMSFT>
-
space
public long space()a handle to theXrSpacein which the bounds are specified. -
time
public long time()theXrTimeat which the bounds will be evaluated withinspace. -
sphereCount
public int sphereCount()the number of sphere bounds. -
spheres
an array ofXrSceneSphereBoundMSFT. -
boxCount
public int boxCount()the number of oriented box bounds. -
boxes
an array ofXrSceneOrientedBoxBoundMSFT. -
frustumCount
public int frustumCount()the number of frustum bounds. -
frustums
an array ofXrSceneFrustumBoundMSFT. -
space
Sets the specified value to thespace()field. -
time
Sets the specified value to thetime()field. -
sphereCount
Sets the specified value to thesphereCount()field. -
spheres
Sets the address of the specifiedXrSceneSphereBoundMSFT.Bufferto thespheres()field. -
boxCount
Sets the specified value to theboxCount()field. -
boxes
Sets the address of the specifiedXrSceneOrientedBoxBoundMSFT.Bufferto theboxes()field. -
frustumCount
Sets the specified value to thefrustumCount()field. -
frustums
Sets the address of the specifiedXrSceneFrustumBoundMSFT.Bufferto thefrustums()field. -
set
public XrSceneBoundsMSFT set(XrSpace space, long time, int sphereCount, @Nullable XrSceneSphereBoundMSFT.Buffer spheres, int boxCount, @Nullable XrSceneOrientedBoxBoundMSFT.Buffer boxes, int frustumCount, @Nullable XrSceneFrustumBoundMSFT.Buffer frustums) 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 newXrSceneBoundsMSFTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrSceneBoundsMSFTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrSceneBoundsMSFTinstance allocated withBufferUtils. -
create
Returns a newXrSceneBoundsMSFTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrSceneBoundsMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrSceneBoundsMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrSceneBoundsMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrSceneBoundsMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrSceneBoundsMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrSceneBoundsMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrSceneBoundsMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrSceneBoundsMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nspace
public static long nspace(long struct) Unsafe version ofspace(). -
ntime
public static long ntime(long struct) Unsafe version oftime(). -
nsphereCount
public static int nsphereCount(long struct) Unsafe version ofsphereCount(). -
nspheres
Unsafe version ofspheres(). -
nboxCount
public static int nboxCount(long struct) Unsafe version ofboxCount(). -
nboxes
Unsafe version ofboxes(). -
nfrustumCount
public static int nfrustumCount(long struct) Unsafe version offrustumCount(). -
nfrustums
Unsafe version offrustums(). -
nspace
Unsafe version ofspace. -
ntime
public static void ntime(long struct, long value) Unsafe version oftime. -
nsphereCount
public static void nsphereCount(long struct, int value) Sets the specified value to thesphereCountfield of the specifiedstruct. -
nspheres
Unsafe version ofspheres. -
nboxCount
public static void nboxCount(long struct, int value) Sets the specified value to theboxCountfield of the specifiedstruct. -
nboxes
Unsafe version ofboxes. -
nfrustumCount
public static void nfrustumCount(long struct, int value) Sets the specified value to thefrustumCountfield of the specifiedstruct. -
nfrustums
Unsafe version offrustums. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-