Package org.lwjgl.openxr
Class XrSceneMeshesMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSceneMeshesMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSceneMeshesMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceScene meshes.Valid Usage (Implicit)
- The
XR_MSFT_scene_understandingextension must be enabled prior to usingXrSceneMeshesMSFT typemust beTYPE_SCENE_MESHES_MSFTnextmust beNULLor a valid pointer to the next structure in a structure chain- If
sceneMeshCountis not 0,sceneMeshesmust be a pointer to an array ofsceneMeshCountXrSceneMeshMSFTstructures
See Also
XrSceneComponentsMSFT,XrSceneMeshMSFTLayout
struct XrSceneMeshesMSFT { XrStructureTypetype(); void *next(); uint32_tsceneMeshCount();XrSceneMeshMSFT*sceneMeshes(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSceneMeshesMSFT.BufferAn array ofXrSceneMeshesMSFTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intNEXT
SCENEMESHCOUNT
SCENEMESHESThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrSceneMeshesMSFT(java.nio.ByteBuffer container)Creates aXrSceneMeshesMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSceneMeshesMSFTcalloc()Returns a newXrSceneMeshesMSFTinstance allocated withmemCalloc.static XrSceneMeshesMSFT.Buffercalloc(int capacity)Returns a newXrSceneMeshesMSFT.Bufferinstance allocated withmemCalloc.static XrSceneMeshesMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSceneMeshesMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneMeshesMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSceneMeshesMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneMeshesMSFTcreate()Returns a newXrSceneMeshesMSFTinstance allocated withBufferUtils.static XrSceneMeshesMSFT.Buffercreate(int capacity)Returns a newXrSceneMeshesMSFT.Bufferinstance allocated withBufferUtils.static XrSceneMeshesMSFTcreate(long address)Returns a newXrSceneMeshesMSFTinstance for the specified memory address.static XrSceneMeshesMSFT.Buffercreate(long address, int capacity)Create aXrSceneMeshesMSFT.Bufferinstance at the specified memory.static XrSceneMeshesMSFTcreateSafe(long address)static XrSceneMeshesMSFT.BuffercreateSafe(long address, int capacity)static XrSceneMeshesMSFTmalloc()Returns a newXrSceneMeshesMSFTinstance allocated withmemAlloc.static XrSceneMeshesMSFT.Buffermalloc(int capacity)Returns a newXrSceneMeshesMSFT.Bufferinstance allocated withmemAlloc.static XrSceneMeshesMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSceneMeshesMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrSceneMeshesMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSceneMeshesMSFTinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrSceneMeshesMSFTnext(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 intnsceneMeshCount(long struct)Unsafe version ofsceneMeshCount().static voidnsceneMeshCount(long struct, int value)Sets the specified value to thesceneMeshCountfield of the specifiedstruct.static XrSceneMeshMSFT.BuffernsceneMeshes(long struct)Unsafe version ofsceneMeshes().static voidnsceneMeshes(long struct, XrSceneMeshMSFT.Buffer value)Unsafe version ofsceneMeshes.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.intsceneMeshCount()auint32_tdescribing the count of elements in thesceneMeshesarray.XrSceneMeshesMSFTsceneMeshCount(int value)Sets the specified value to thesceneMeshCount()field.XrSceneMeshMSFT.BuffersceneMeshes()an array ofXrSceneMeshMSFT.XrSceneMeshesMSFTsceneMeshes(XrSceneMeshMSFT.Buffer value)Sets the address of the specifiedXrSceneMeshMSFT.Bufferto thesceneMeshes()field.XrSceneMeshesMSFTset(int type, long next, int sceneMeshCount, XrSceneMeshMSFT.Buffer sceneMeshes)Initializes this struct with the specified values.XrSceneMeshesMSFTset(XrSceneMeshesMSFT src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrSceneMeshesMSFTtype(int value)Sets the specified value to thetype()field.XrSceneMeshesMSFTtype$Default()Sets theTYPE_SCENE_MESHES_MSFTvalue to thetype()field.
-
-
-
Constructor Detail
-
XrSceneMeshesMSFT
public XrSceneMeshesMSFT(java.nio.ByteBuffer container)
Creates aXrSceneMeshesMSFTinstance 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.
-
sceneMeshCount
public int sceneMeshCount()
auint32_tdescribing the count of elements in thesceneMeshesarray.
-
sceneMeshes
@Nullable public XrSceneMeshMSFT.Buffer sceneMeshes()
an array ofXrSceneMeshMSFT.
-
type
public XrSceneMeshesMSFT type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrSceneMeshesMSFT type$Default()
Sets theTYPE_SCENE_MESHES_MSFTvalue to thetype()field.
-
next
public XrSceneMeshesMSFT next(long value)
Sets the specified value to thenext()field.
-
sceneMeshCount
public XrSceneMeshesMSFT sceneMeshCount(int value)
Sets the specified value to thesceneMeshCount()field.
-
sceneMeshes
public XrSceneMeshesMSFT sceneMeshes(@Nullable XrSceneMeshMSFT.Buffer value)
Sets the address of the specifiedXrSceneMeshMSFT.Bufferto thesceneMeshes()field.
-
set
public XrSceneMeshesMSFT set(int type, long next, int sceneMeshCount, @Nullable XrSceneMeshMSFT.Buffer sceneMeshes)
Initializes this struct with the specified values.
-
set
public XrSceneMeshesMSFT set(XrSceneMeshesMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSceneMeshesMSFT malloc()
Returns a newXrSceneMeshesMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSceneMeshesMSFT calloc()
Returns a newXrSceneMeshesMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSceneMeshesMSFT create()
Returns a newXrSceneMeshesMSFTinstance allocated withBufferUtils.
-
create
public static XrSceneMeshesMSFT create(long address)
Returns a newXrSceneMeshesMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrSceneMeshesMSFT createSafe(long address)
-
malloc
public static XrSceneMeshesMSFT.Buffer malloc(int capacity)
Returns a newXrSceneMeshesMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSceneMeshesMSFT.Buffer calloc(int capacity)
Returns a newXrSceneMeshesMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSceneMeshesMSFT.Buffer create(int capacity)
Returns a newXrSceneMeshesMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSceneMeshesMSFT.Buffer create(long address, int capacity)
Create aXrSceneMeshesMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSceneMeshesMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSceneMeshesMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneMeshesMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSceneMeshesMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneMeshesMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSceneMeshesMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneMeshesMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSceneMeshesMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneMeshesMSFT.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().
-
nsceneMeshCount
public static int nsceneMeshCount(long struct)
Unsafe version ofsceneMeshCount().
-
nsceneMeshes
@Nullable public static XrSceneMeshMSFT.Buffer nsceneMeshes(long struct)
Unsafe version ofsceneMeshes().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nsceneMeshCount
public static void nsceneMeshCount(long struct, int value)Sets the specified value to thesceneMeshCountfield of the specifiedstruct.
-
nsceneMeshes
public static void nsceneMeshes(long struct, @Nullable XrSceneMeshMSFT.Buffer value)Unsafe version ofsceneMeshes.
-
-