Package org.lwjgl.openxr
Class XrSceneBoundsMSFT
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
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
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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()boxCount(int value) Sets the specified value to theboxCountfield.@Nullable XrSceneOrientedBoxBoundMSFT.Bufferboxes()boxes(@Nullable XrSceneOrientedBoxBoundMSFT.Buffer value) Sets the address of the specifiedXrSceneOrientedBoxBoundMSFT.Bufferto theboxesfield.static XrSceneBoundsMSFTcalloc()Returns a newXrSceneBoundsMSFTinstance allocated withmemCalloc.static XrSceneBoundsMSFT.Buffercalloc(int capacity) Returns a newXrSceneBoundsMSFT.Bufferinstance allocated withmemCalloc.static XrSceneBoundsMSFT.Buffercalloc(int capacity, MemoryStack stack) Returns a newXrSceneBoundsMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneBoundsMSFTcalloc(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) intfrustumCount(int value) Sets the specified value to thefrustumCountfield.@Nullable XrSceneFrustumBoundMSFT.Bufferfrustums()frustums(@Nullable XrSceneFrustumBoundMSFT.Buffer value) Sets the address of the specifiedXrSceneFrustumBoundMSFT.Bufferto thefrustumsfield.static XrSceneBoundsMSFTmalloc()Returns a newXrSceneBoundsMSFTinstance allocated withmemAlloc.static XrSceneBoundsMSFT.Buffermalloc(int capacity) Returns a newXrSceneBoundsMSFT.Bufferinstance allocated withmemAlloc.static XrSceneBoundsMSFT.Buffermalloc(int capacity, MemoryStack stack) Returns a newXrSceneBoundsMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrSceneBoundsMSFTmalloc(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()Returnssizeof(struct).longspace()Sets the specified value to thespacefield.intsphereCount(int value) Sets the specified value to thesphereCountfield.@Nullable XrSceneSphereBoundMSFT.Bufferspheres()spheres(@Nullable XrSceneSphereBoundMSFT.Buffer value) Sets the address of the specifiedXrSceneSphereBoundMSFT.Bufferto thespheresfield.longtime()time(long value) Sets the specified value to thetimefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<XrSceneBoundsMSFT>
-
space
public long space()- Returns:
- the value of the
spacefield.
-
time
public long time()- Returns:
- the value of the
timefield.
-
sphereCount
public int sphereCount()- Returns:
- the value of the
sphereCountfield.
-
spheres
- Returns:
- a
XrSceneSphereBoundMSFT.Bufferview of the struct array pointed to by thespheresfield.
-
boxCount
public int boxCount()- Returns:
- the value of the
boxCountfield.
-
boxes
- Returns:
- a
XrSceneOrientedBoxBoundMSFT.Bufferview of the struct array pointed to by theboxesfield.
-
frustumCount
public int frustumCount()- Returns:
- the value of the
frustumCountfield.
-
frustums
- Returns:
- a
XrSceneFrustumBoundMSFT.Bufferview of the struct array pointed to by thefrustumsfield.
-
space
Sets the specified value to thespacefield. -
time
Sets the specified value to thetimefield. -
sphereCount
Sets the specified value to thesphereCountfield. -
spheres
Sets the address of the specifiedXrSceneSphereBoundMSFT.Bufferto thespheresfield. -
boxCount
Sets the specified value to theboxCountfield. -
boxes
Sets the address of the specifiedXrSceneOrientedBoxBoundMSFT.Bufferto theboxesfield. -
frustumCount
Sets the specified value to thefrustumCountfield. -
frustums
Sets the address of the specifiedXrSceneFrustumBoundMSFT.Bufferto thefrustumsfield. -
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
-