Package org.lwjgl.openxr
Class XrSceneBoundsMSFT
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct XrSceneBoundsMSFT {
XrSpace space;
XrTime time;
uint32_t sphereCount;
{@link XrSceneSphereBoundMSFT XrSceneSphereBoundMSFT} const * spheres;
uint32_t boxCount;
{@link XrSceneOrientedBoxBoundMSFT XrSceneOrientedBoxBoundMSFT} const * boxes;
uint32_t frustumCount;
{@link XrSceneFrustumBoundMSFT XrSceneFrustumBoundMSFT} const * frustums;
}
-
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
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The 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 aXrSceneBoundsMSFT
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
boxCount()
boxCount
(int value) Sets the specified value to theboxCount
field.@Nullable XrSceneOrientedBoxBoundMSFT.Buffer
boxes()
boxes
(@Nullable XrSceneOrientedBoxBoundMSFT.Buffer value) Sets the address of the specifiedXrSceneOrientedBoxBoundMSFT.Buffer
to theboxes
field.static XrSceneBoundsMSFT
calloc()
Returns a newXrSceneBoundsMSFT
instance allocated withmemCalloc
.static XrSceneBoundsMSFT.Buffer
calloc
(int capacity) Returns a newXrSceneBoundsMSFT.Buffer
instance allocated withmemCalloc
.static XrSceneBoundsMSFT.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newXrSceneBoundsMSFT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrSceneBoundsMSFT
calloc
(MemoryStack stack) Returns a newXrSceneBoundsMSFT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrSceneBoundsMSFT
create()
Returns a newXrSceneBoundsMSFT
instance allocated withBufferUtils
.static XrSceneBoundsMSFT.Buffer
create
(int capacity) Returns a newXrSceneBoundsMSFT.Buffer
instance allocated withBufferUtils
.static XrSceneBoundsMSFT
create
(long address) Returns a newXrSceneBoundsMSFT
instance for the specified memory address.static XrSceneBoundsMSFT.Buffer
create
(long address, int capacity) Create aXrSceneBoundsMSFT.Buffer
instance at the specified memory.static @Nullable XrSceneBoundsMSFT
createSafe
(long address) static @Nullable XrSceneBoundsMSFT.Buffer
createSafe
(long address, int capacity) int
frustumCount
(int value) Sets the specified value to thefrustumCount
field.@Nullable XrSceneFrustumBoundMSFT.Buffer
frustums()
frustums
(@Nullable XrSceneFrustumBoundMSFT.Buffer value) Sets the address of the specifiedXrSceneFrustumBoundMSFT.Buffer
to thefrustums
field.static XrSceneBoundsMSFT
malloc()
Returns a newXrSceneBoundsMSFT
instance allocated withmemAlloc
.static XrSceneBoundsMSFT.Buffer
malloc
(int capacity) Returns a newXrSceneBoundsMSFT.Buffer
instance allocated withmemAlloc
.static XrSceneBoundsMSFT.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newXrSceneBoundsMSFT.Buffer
instance allocated on the specifiedMemoryStack
.static XrSceneBoundsMSFT
malloc
(MemoryStack stack) Returns a newXrSceneBoundsMSFT
instance allocated on the specifiedMemoryStack
.static int
nboxCount
(long struct) Unsafe version ofboxCount()
.static void
nboxCount
(long struct, int value) Sets the specified value to theboxCount
field of the specifiedstruct
.static @Nullable XrSceneOrientedBoxBoundMSFT.Buffer
nboxes
(long struct) Unsafe version ofboxes()
.static void
nboxes
(long struct, @Nullable XrSceneOrientedBoxBoundMSFT.Buffer value) Unsafe version ofboxes
.static int
nfrustumCount
(long struct) Unsafe version offrustumCount()
.static void
nfrustumCount
(long struct, int value) Sets the specified value to thefrustumCount
field of the specifiedstruct
.static @Nullable XrSceneFrustumBoundMSFT.Buffer
nfrustums
(long struct) Unsafe version offrustums()
.static void
nfrustums
(long struct, @Nullable XrSceneFrustumBoundMSFT.Buffer value) Unsafe version offrustums
.static long
nspace
(long struct) Unsafe version ofspace()
.static void
Unsafe version ofspace
.static int
nsphereCount
(long struct) Unsafe version ofsphereCount()
.static void
nsphereCount
(long struct, int value) Sets the specified value to thesphereCount
field of the specifiedstruct
.static @Nullable XrSceneSphereBoundMSFT.Buffer
nspheres
(long struct) Unsafe version ofspheres()
.static void
nspheres
(long struct, @Nullable XrSceneSphereBoundMSFT.Buffer value) Unsafe version ofspheres
.static long
ntime
(long struct) Unsafe version oftime()
.static void
ntime
(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.int
sizeof()
Returnssizeof(struct)
.long
space()
Sets the specified value to thespace
field.int
sphereCount
(int value) Sets the specified value to thesphereCount
field.@Nullable XrSceneSphereBoundMSFT.Buffer
spheres()
spheres
(@Nullable XrSceneSphereBoundMSFT.Buffer value) Sets the address of the specifiedXrSceneSphereBoundMSFT.Buffer
to thespheres
field.long
time()
time
(long value) Sets the specified value to thetime
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aXrSceneBoundsMSFT
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
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<XrSceneBoundsMSFT>
-
space
public long space()- Returns:
- the value of the
space
field.
-
time
public long time()- Returns:
- the value of the
time
field.
-
sphereCount
public int sphereCount()- Returns:
- the value of the
sphereCount
field.
-
spheres
- Returns:
- a
XrSceneSphereBoundMSFT.Buffer
view of the struct array pointed to by thespheres
field.
-
boxCount
public int boxCount()- Returns:
- the value of the
boxCount
field.
-
boxes
- Returns:
- a
XrSceneOrientedBoxBoundMSFT.Buffer
view of the struct array pointed to by theboxes
field.
-
frustumCount
public int frustumCount()- Returns:
- the value of the
frustumCount
field.
-
frustums
- Returns:
- a
XrSceneFrustumBoundMSFT.Buffer
view of the struct array pointed to by thefrustums
field.
-
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.Buffer
to thespheres
field. -
boxCount
Sets the specified value to theboxCount
field. -
boxes
Sets the address of the specifiedXrSceneOrientedBoxBoundMSFT.Buffer
to theboxes
field. -
frustumCount
Sets the specified value to thefrustumCount
field. -
frustums
Sets the address of the specifiedXrSceneFrustumBoundMSFT.Buffer
to 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 newXrSceneBoundsMSFT
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newXrSceneBoundsMSFT
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newXrSceneBoundsMSFT
instance allocated withBufferUtils
. -
create
Returns a newXrSceneBoundsMSFT
instance for the specified memory address. -
createSafe
-
malloc
Returns a newXrSceneBoundsMSFT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newXrSceneBoundsMSFT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newXrSceneBoundsMSFT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aXrSceneBoundsMSFT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newXrSceneBoundsMSFT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newXrSceneBoundsMSFT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newXrSceneBoundsMSFT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newXrSceneBoundsMSFT.Buffer
instance allocated on the specifiedMemoryStack
and 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 thesphereCount
field of the specifiedstruct
. -
nspheres
Unsafe version ofspheres
. -
nboxCount
public static void nboxCount(long struct, int value) Sets the specified value to theboxCount
field of the specifiedstruct
. -
nboxes
Unsafe version ofboxes
. -
nfrustumCount
public static void nfrustumCount(long struct, int value) Sets the specified value to thefrustumCount
field 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
-