Package org.lwjgl.openxr
Class XrSceneBoundsMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSceneBoundsMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSceneBoundsMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceThe 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,ComputeNewSceneMSFTLayout
struct XrSceneBoundsMSFT { XrSpacespace(); XrTimetime(); uint32_tsphereCount();XrSceneSphereBoundMSFTconst *spheres(); uint32_tboxCount();XrSceneOrientedBoxBoundMSFTconst *boxes(); uint32_tfrustumCount();XrSceneFrustumBoundMSFTconst *frustums(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSceneBoundsMSFT.BufferAn array ofXrSceneBoundsMSFTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBOXCOUNT
BOXES
FRUSTUMCOUNT
FRUSTUMSThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSPACE
SPHERECOUNT
SPHERES
TIMEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrSceneBoundsMSFT(java.nio.ByteBuffer container)Creates aXrSceneBoundsMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intboxCount()the number of oriented box bounds.XrSceneBoundsMSFTboxCount(int value)Sets the specified value to theboxCount()field.XrSceneOrientedBoxBoundMSFT.Bufferboxes()an array ofXrSceneOrientedBoxBoundMSFT.XrSceneBoundsMSFTboxes(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 XrSceneBoundsMSFTcreateSafe(long address)static XrSceneBoundsMSFT.BuffercreateSafe(long address, int capacity)intfrustumCount()the number of frustum bounds.XrSceneBoundsMSFTfrustumCount(int value)Sets the specified value to thefrustumCount()field.XrSceneFrustumBoundMSFT.Bufferfrustums()an array ofXrSceneFrustumBoundMSFT.XrSceneBoundsMSFTfrustums(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 XrSceneOrientedBoxBoundMSFT.Buffernboxes(long struct)Unsafe version ofboxes().static voidnboxes(long struct, 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 XrSceneFrustumBoundMSFT.Buffernfrustums(long struct)Unsafe version offrustums().static voidnfrustums(long struct, XrSceneFrustumBoundMSFT.Buffer value)Unsafe version offrustums.static longnspace(long struct)Unsafe version ofspace().static voidnspace(long struct, XrSpace value)Unsafe 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 XrSceneSphereBoundMSFT.Buffernspheres(long struct)Unsafe version ofspheres().static voidnspheres(long struct, XrSceneSphereBoundMSFT.Buffer value)Unsafe version ofspheres.static longntime(long struct)Unsafe version oftime().static voidntime(long struct, long value)Unsafe version oftime.XrSceneBoundsMSFTset(XrSceneBoundsMSFT src)Copies the specified struct data to this struct.XrSceneBoundsMSFTset(XrSpace space, long time, int sphereCount, XrSceneSphereBoundMSFT.Buffer spheres, int boxCount, XrSceneOrientedBoxBoundMSFT.Buffer boxes, int frustumCount, XrSceneFrustumBoundMSFT.Buffer frustums)Initializes this struct with the specified values.intsizeof()longspace()a handle to theXrSpacein which the bounds are specified.XrSceneBoundsMSFTspace(XrSpace value)Sets the specified value to thespace()field.intsphereCount()the number of sphere bounds.XrSceneBoundsMSFTsphereCount(int value)Sets the specified value to thesphereCount()field.XrSceneSphereBoundMSFT.Bufferspheres()an array ofXrSceneSphereBoundMSFT.XrSceneBoundsMSFTspheres(XrSceneSphereBoundMSFT.Buffer value)Sets the address of the specifiedXrSceneSphereBoundMSFT.Bufferto thespheres()field.longtime()theXrTimeat which the bounds will be evaluated withinspace.XrSceneBoundsMSFTtime(long value)Sets the specified value to thetime()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
XrSceneBoundsMSFT
public XrSceneBoundsMSFT(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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
@Nullable public XrSceneSphereBoundMSFT.Buffer spheres()
an array ofXrSceneSphereBoundMSFT.
-
boxCount
public int boxCount()
the number of oriented box bounds.
-
boxes
@Nullable public XrSceneOrientedBoxBoundMSFT.Buffer boxes()
an array ofXrSceneOrientedBoxBoundMSFT.
-
frustumCount
public int frustumCount()
the number of frustum bounds.
-
frustums
@Nullable public XrSceneFrustumBoundMSFT.Buffer frustums()
an array ofXrSceneFrustumBoundMSFT.
-
space
public XrSceneBoundsMSFT space(XrSpace value)
Sets the specified value to thespace()field.
-
time
public XrSceneBoundsMSFT time(long value)
Sets the specified value to thetime()field.
-
sphereCount
public XrSceneBoundsMSFT sphereCount(int value)
Sets the specified value to thesphereCount()field.
-
spheres
public XrSceneBoundsMSFT spheres(@Nullable XrSceneSphereBoundMSFT.Buffer value)
Sets the address of the specifiedXrSceneSphereBoundMSFT.Bufferto thespheres()field.
-
boxCount
public XrSceneBoundsMSFT boxCount(int value)
Sets the specified value to theboxCount()field.
-
boxes
public XrSceneBoundsMSFT boxes(@Nullable XrSceneOrientedBoxBoundMSFT.Buffer value)
Sets the address of the specifiedXrSceneOrientedBoxBoundMSFT.Bufferto theboxes()field.
-
frustumCount
public XrSceneBoundsMSFT frustumCount(int value)
Sets the specified value to thefrustumCount()field.
-
frustums
public XrSceneBoundsMSFT frustums(@Nullable XrSceneFrustumBoundMSFT.Buffer value)
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
public XrSceneBoundsMSFT set(XrSceneBoundsMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSceneBoundsMSFT malloc()
Returns a newXrSceneBoundsMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSceneBoundsMSFT calloc()
Returns a newXrSceneBoundsMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSceneBoundsMSFT create()
Returns a newXrSceneBoundsMSFTinstance allocated withBufferUtils.
-
create
public static XrSceneBoundsMSFT create(long address)
Returns a newXrSceneBoundsMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrSceneBoundsMSFT createSafe(long address)
-
malloc
public static XrSceneBoundsMSFT.Buffer malloc(int capacity)
Returns a newXrSceneBoundsMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSceneBoundsMSFT.Buffer calloc(int capacity)
Returns a newXrSceneBoundsMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSceneBoundsMSFT.Buffer create(int capacity)
Returns a newXrSceneBoundsMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSceneBoundsMSFT.Buffer create(long address, int capacity)
Create aXrSceneBoundsMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSceneBoundsMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSceneBoundsMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneBoundsMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSceneBoundsMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneBoundsMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSceneBoundsMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneBoundsMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSceneBoundsMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneBoundsMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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
@Nullable public static XrSceneSphereBoundMSFT.Buffer nspheres(long struct)
Unsafe version ofspheres().
-
nboxCount
public static int nboxCount(long struct)
Unsafe version ofboxCount().
-
nboxes
@Nullable public static XrSceneOrientedBoxBoundMSFT.Buffer nboxes(long struct)
Unsafe version ofboxes().
-
nfrustumCount
public static int nfrustumCount(long struct)
Unsafe version offrustumCount().
-
nfrustums
@Nullable public static XrSceneFrustumBoundMSFT.Buffer nfrustums(long struct)
Unsafe version offrustums().
-
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
public static void nspheres(long struct, @Nullable XrSceneSphereBoundMSFT.Buffer value)Unsafe version ofspheres.
-
nboxCount
public static void nboxCount(long struct, int value)Sets the specified value to theboxCountfield of the specifiedstruct.
-
nboxes
public static void nboxes(long struct, @Nullable XrSceneOrientedBoxBoundMSFT.Buffer value)Unsafe version ofboxes.
-
nfrustumCount
public static void nfrustumCount(long struct, int value)Sets the specified value to thefrustumCountfield of the specifiedstruct.
-
nfrustums
public static void nfrustums(long struct, @Nullable XrSceneFrustumBoundMSFT.Buffer value)Unsafe version offrustums.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-