Package org.lwjgl.openxr
Class XrScenePlanesMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrScenePlanesMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrScenePlanesMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceScene planes.Valid Usage (Implicit)
- The
XR_MSFT_scene_understandingextension must be enabled prior to usingXrScenePlanesMSFT typemust beTYPE_SCENE_PLANES_MSFTnextmust beNULLor a valid pointer to the next structure in a structure chain- If
scenePlaneCountis not 0,scenePlanesmust be a pointer to an array ofscenePlaneCountXrScenePlaneMSFTstructures
See Also
XrSceneComponentsMSFT,XrScenePlaneMSFTLayout
struct XrScenePlanesMSFT { XrStructureTypetype(); void *next(); uint32_tscenePlaneCount();XrScenePlaneMSFT*scenePlanes(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrScenePlanesMSFT.BufferAn array ofXrScenePlanesMSFTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intNEXT
SCENEPLANECOUNT
SCENEPLANESThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrScenePlanesMSFT(java.nio.ByteBuffer container)Creates aXrScenePlanesMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrScenePlanesMSFTcalloc()Returns a newXrScenePlanesMSFTinstance allocated withmemCalloc.static XrScenePlanesMSFT.Buffercalloc(int capacity)Returns a newXrScenePlanesMSFT.Bufferinstance allocated withmemCalloc.static XrScenePlanesMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrScenePlanesMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrScenePlanesMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrScenePlanesMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrScenePlanesMSFTcreate()Returns a newXrScenePlanesMSFTinstance allocated withBufferUtils.static XrScenePlanesMSFT.Buffercreate(int capacity)Returns a newXrScenePlanesMSFT.Bufferinstance allocated withBufferUtils.static XrScenePlanesMSFTcreate(long address)Returns a newXrScenePlanesMSFTinstance for the specified memory address.static XrScenePlanesMSFT.Buffercreate(long address, int capacity)Create aXrScenePlanesMSFT.Bufferinstance at the specified memory.static XrScenePlanesMSFTcreateSafe(long address)static XrScenePlanesMSFT.BuffercreateSafe(long address, int capacity)static XrScenePlanesMSFTmalloc()Returns a newXrScenePlanesMSFTinstance allocated withmemAlloc.static XrScenePlanesMSFT.Buffermalloc(int capacity)Returns a newXrScenePlanesMSFT.Bufferinstance allocated withmemAlloc.static XrScenePlanesMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrScenePlanesMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrScenePlanesMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrScenePlanesMSFTinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrScenePlanesMSFTnext(long value)Sets the specified value to thenext()field.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static intnscenePlaneCount(long struct)Unsafe version ofscenePlaneCount().static voidnscenePlaneCount(long struct, int value)Sets the specified value to thescenePlaneCountfield of the specifiedstruct.static XrScenePlaneMSFT.BuffernscenePlanes(long struct)Unsafe version ofscenePlanes().static voidnscenePlanes(long struct, XrScenePlaneMSFT.Buffer value)Unsafe version ofscenePlanes.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.intscenePlaneCount()auint32_tdescribing the count of elements in theXrScenePlaneMSFTarray.XrScenePlanesMSFTscenePlaneCount(int value)Sets the specified value to thescenePlaneCount()field.XrScenePlaneMSFT.BufferscenePlanes()an array ofXrScenePlaneMSFT.XrScenePlanesMSFTscenePlanes(XrScenePlaneMSFT.Buffer value)Sets the address of the specifiedXrScenePlaneMSFT.Bufferto thescenePlanes()field.XrScenePlanesMSFTset(int type, long next, int scenePlaneCount, XrScenePlaneMSFT.Buffer scenePlanes)Initializes this struct with the specified values.XrScenePlanesMSFTset(XrScenePlanesMSFT src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrScenePlanesMSFTtype(int value)Sets the specified value to thetype()field.XrScenePlanesMSFTtype$Default()Sets theTYPE_SCENE_PLANES_MSFTvalue to thetype()field.
-
-
-
Constructor Detail
-
XrScenePlanesMSFT
public XrScenePlanesMSFT(java.nio.ByteBuffer container)
Creates aXrScenePlanesMSFTinstance 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
-
type
public int type()
theXrStructureTypeof this structure.
-
next
public long next()
NULLor a pointer to the next structure in a structure chain.
-
scenePlaneCount
public int scenePlaneCount()
auint32_tdescribing the count of elements in theXrScenePlaneMSFTarray.
-
scenePlanes
@Nullable public XrScenePlaneMSFT.Buffer scenePlanes()
an array ofXrScenePlaneMSFT.
-
type
public XrScenePlanesMSFT type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrScenePlanesMSFT type$Default()
Sets theTYPE_SCENE_PLANES_MSFTvalue to thetype()field.
-
next
public XrScenePlanesMSFT next(long value)
Sets the specified value to thenext()field.
-
scenePlaneCount
public XrScenePlanesMSFT scenePlaneCount(int value)
Sets the specified value to thescenePlaneCount()field.
-
scenePlanes
public XrScenePlanesMSFT scenePlanes(@Nullable XrScenePlaneMSFT.Buffer value)
Sets the address of the specifiedXrScenePlaneMSFT.Bufferto thescenePlanes()field.
-
set
public XrScenePlanesMSFT set(int type, long next, int scenePlaneCount, @Nullable XrScenePlaneMSFT.Buffer scenePlanes)
Initializes this struct with the specified values.
-
set
public XrScenePlanesMSFT set(XrScenePlanesMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrScenePlanesMSFT malloc()
Returns a newXrScenePlanesMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrScenePlanesMSFT calloc()
Returns a newXrScenePlanesMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrScenePlanesMSFT create()
Returns a newXrScenePlanesMSFTinstance allocated withBufferUtils.
-
create
public static XrScenePlanesMSFT create(long address)
Returns a newXrScenePlanesMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrScenePlanesMSFT createSafe(long address)
-
malloc
public static XrScenePlanesMSFT.Buffer malloc(int capacity)
Returns a newXrScenePlanesMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrScenePlanesMSFT.Buffer calloc(int capacity)
Returns a newXrScenePlanesMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrScenePlanesMSFT.Buffer create(int capacity)
Returns a newXrScenePlanesMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrScenePlanesMSFT.Buffer create(long address, int capacity)
Create aXrScenePlanesMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrScenePlanesMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrScenePlanesMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrScenePlanesMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrScenePlanesMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrScenePlanesMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrScenePlanesMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrScenePlanesMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrScenePlanesMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrScenePlanesMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
nnext
public static long nnext(long struct)
Unsafe version ofnext().
-
nscenePlaneCount
public static int nscenePlaneCount(long struct)
Unsafe version ofscenePlaneCount().
-
nscenePlanes
@Nullable public static XrScenePlaneMSFT.Buffer nscenePlanes(long struct)
Unsafe version ofscenePlanes().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nscenePlaneCount
public static void nscenePlaneCount(long struct, int value)Sets the specified value to thescenePlaneCountfield of the specifiedstruct.
-
nscenePlanes
public static void nscenePlanes(long struct, @Nullable XrScenePlaneMSFT.Buffer value)Unsafe version ofscenePlanes.
-
-