Package org.lwjgl.openxr
Class XrSceneMeshBuffersMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSceneMeshBuffersMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSceneMeshBuffersMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceScene mesh buffers.Valid Usage (Implicit)
- The
XR_MSFT_scene_understandingextension must be enabled prior to usingXrSceneMeshBuffersMSFT typemust beTYPE_SCENE_MESH_BUFFERS_MSFTnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
XrSceneMeshIndicesUint16MSFT,XrSceneMeshIndicesUint32MSFT,XrSceneMeshVertexBufferMSFT,GetSceneMeshBuffersMSFTLayout
struct XrSceneMeshBuffersMSFT { XrStructureTypetype(); void *next(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSceneMeshBuffersMSFT.BufferAn array ofXrSceneMeshBuffersMSFTstructs.
-
Constructor Summary
Constructors Constructor Description XrSceneMeshBuffersMSFT(java.nio.ByteBuffer container)Creates aXrSceneMeshBuffersMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSceneMeshBuffersMSFTcalloc()Returns a newXrSceneMeshBuffersMSFTinstance allocated withmemCalloc.static XrSceneMeshBuffersMSFT.Buffercalloc(int capacity)Returns a newXrSceneMeshBuffersMSFT.Bufferinstance allocated withmemCalloc.static XrSceneMeshBuffersMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSceneMeshBuffersMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneMeshBuffersMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSceneMeshBuffersMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneMeshBuffersMSFTcreate()Returns a newXrSceneMeshBuffersMSFTinstance allocated withBufferUtils.static XrSceneMeshBuffersMSFT.Buffercreate(int capacity)Returns a newXrSceneMeshBuffersMSFT.Bufferinstance allocated withBufferUtils.static XrSceneMeshBuffersMSFTcreate(long address)Returns a newXrSceneMeshBuffersMSFTinstance for the specified memory address.static XrSceneMeshBuffersMSFT.Buffercreate(long address, int capacity)Create aXrSceneMeshBuffersMSFT.Bufferinstance at the specified memory.static XrSceneMeshBuffersMSFTcreateSafe(long address)static XrSceneMeshBuffersMSFT.BuffercreateSafe(long address, int capacity)static XrSceneMeshBuffersMSFTmalloc()Returns a newXrSceneMeshBuffersMSFTinstance allocated withmemAlloc.static XrSceneMeshBuffersMSFT.Buffermalloc(int capacity)Returns a newXrSceneMeshBuffersMSFT.Bufferinstance allocated withmemAlloc.static XrSceneMeshBuffersMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSceneMeshBuffersMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrSceneMeshBuffersMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSceneMeshBuffersMSFTinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrSceneMeshBuffersMSFTnext(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 intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrSceneMeshBuffersMSFTset(int type, long next)Initializes this struct with the specified values.XrSceneMeshBuffersMSFTset(XrSceneMeshBuffersMSFT src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrSceneMeshBuffersMSFTtype(int value)Sets the specified value to thetype()field.XrSceneMeshBuffersMSFTtype$Default()Sets theTYPE_SCENE_MESH_BUFFERS_MSFTvalue to thetype()field.
-
-
-
Constructor Detail
-
XrSceneMeshBuffersMSFT
public XrSceneMeshBuffersMSFT(java.nio.ByteBuffer container)
Creates aXrSceneMeshBuffersMSFTinstance 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.
-
type
public XrSceneMeshBuffersMSFT type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrSceneMeshBuffersMSFT type$Default()
Sets theTYPE_SCENE_MESH_BUFFERS_MSFTvalue to thetype()field.
-
next
public XrSceneMeshBuffersMSFT next(long value)
Sets the specified value to thenext()field.
-
set
public XrSceneMeshBuffersMSFT set(int type, long next)
Initializes this struct with the specified values.
-
set
public XrSceneMeshBuffersMSFT set(XrSceneMeshBuffersMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSceneMeshBuffersMSFT malloc()
Returns a newXrSceneMeshBuffersMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSceneMeshBuffersMSFT calloc()
Returns a newXrSceneMeshBuffersMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSceneMeshBuffersMSFT create()
Returns a newXrSceneMeshBuffersMSFTinstance allocated withBufferUtils.
-
create
public static XrSceneMeshBuffersMSFT create(long address)
Returns a newXrSceneMeshBuffersMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrSceneMeshBuffersMSFT createSafe(long address)
-
malloc
public static XrSceneMeshBuffersMSFT.Buffer malloc(int capacity)
Returns a newXrSceneMeshBuffersMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSceneMeshBuffersMSFT.Buffer calloc(int capacity)
Returns a newXrSceneMeshBuffersMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSceneMeshBuffersMSFT.Buffer create(int capacity)
Returns a newXrSceneMeshBuffersMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSceneMeshBuffersMSFT.Buffer create(long address, int capacity)
Create aXrSceneMeshBuffersMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSceneMeshBuffersMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSceneMeshBuffersMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneMeshBuffersMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSceneMeshBuffersMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneMeshBuffersMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSceneMeshBuffersMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneMeshBuffersMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSceneMeshBuffersMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneMeshBuffersMSFT.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().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
-