Package org.lwjgl.openxr
Class XrSceneMeshVertexBufferMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSceneMeshVertexBufferMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSceneMeshVertexBufferMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceScene mesh vertex buffer.Valid Usage (Implicit)
- The
XR_MSFT_scene_understandingextension must be enabled prior to usingXrSceneMeshVertexBufferMSFT typemust beTYPE_SCENE_MESH_VERTEX_BUFFER_MSFTnextmust beNULLor a valid pointer to the next structure in a structure chain- If
vertexCapacityInputis not 0,verticesmust be a pointer to an array ofvertexCapacityInputXrVector3fstructures
See Also
XrSceneMeshBuffersMSFT,XrVector3f,GetSceneMeshBuffersMSFTLayout
struct XrSceneMeshVertexBufferMSFT { XrStructureTypetype(); void *next(); uint32_tvertexCapacityInput(); uint32_tvertexCountOutput();XrVector3f*vertices(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSceneMeshVertexBufferMSFT.BufferAn array ofXrSceneMeshVertexBufferMSFTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPE
VERTEXCAPACITYINPUT
VERTEXCOUNTOUTPUT
VERTICESThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrSceneMeshVertexBufferMSFT(java.nio.ByteBuffer container)Creates aXrSceneMeshVertexBufferMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSceneMeshVertexBufferMSFTcalloc()Returns a newXrSceneMeshVertexBufferMSFTinstance allocated withmemCalloc.static XrSceneMeshVertexBufferMSFT.Buffercalloc(int capacity)Returns a newXrSceneMeshVertexBufferMSFT.Bufferinstance allocated withmemCalloc.static XrSceneMeshVertexBufferMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSceneMeshVertexBufferMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneMeshVertexBufferMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSceneMeshVertexBufferMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneMeshVertexBufferMSFTcreate()Returns a newXrSceneMeshVertexBufferMSFTinstance allocated withBufferUtils.static XrSceneMeshVertexBufferMSFT.Buffercreate(int capacity)Returns a newXrSceneMeshVertexBufferMSFT.Bufferinstance allocated withBufferUtils.static XrSceneMeshVertexBufferMSFTcreate(long address)Returns a newXrSceneMeshVertexBufferMSFTinstance for the specified memory address.static XrSceneMeshVertexBufferMSFT.Buffercreate(long address, int capacity)Create aXrSceneMeshVertexBufferMSFT.Bufferinstance at the specified memory.static XrSceneMeshVertexBufferMSFTcreateSafe(long address)static XrSceneMeshVertexBufferMSFT.BuffercreateSafe(long address, int capacity)static XrSceneMeshVertexBufferMSFTmalloc()Returns a newXrSceneMeshVertexBufferMSFTinstance allocated withmemAlloc.static XrSceneMeshVertexBufferMSFT.Buffermalloc(int capacity)Returns a newXrSceneMeshVertexBufferMSFT.Bufferinstance allocated withmemAlloc.static XrSceneMeshVertexBufferMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSceneMeshVertexBufferMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrSceneMeshVertexBufferMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSceneMeshVertexBufferMSFTinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrSceneMeshVertexBufferMSFTnext(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.static intnvertexCapacityInput(long struct)Unsafe version ofvertexCapacityInput().static voidnvertexCapacityInput(long struct, int value)Sets the specified value to thevertexCapacityInputfield of the specifiedstruct.static intnvertexCountOutput(long struct)Unsafe version ofvertexCountOutput().static voidnvertexCountOutput(long struct, int value)Unsafe version ofvertexCountOutput.static XrVector3f.Buffernvertices(long struct)Unsafe version ofvertices().static voidnvertices(long struct, XrVector3f.Buffer value)Unsafe version ofvertices.XrSceneMeshVertexBufferMSFTset(int type, long next, int vertexCapacityInput, int vertexCountOutput, XrVector3f.Buffer vertices)Initializes this struct with the specified values.XrSceneMeshVertexBufferMSFTset(XrSceneMeshVertexBufferMSFT src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrSceneMeshVertexBufferMSFTtype(int value)Sets the specified value to thetype()field.XrSceneMeshVertexBufferMSFTtype$Default()Sets theTYPE_SCENE_MESH_VERTEX_BUFFER_MSFTvalue to thetype()field.intvertexCapacityInput()the capacity of the array, or 0 to indicate a request to retrieve the required capacity.XrSceneMeshVertexBufferMSFTvertexCapacityInput(int value)Sets the specified value to thevertexCapacityInput()field.intvertexCountOutput()a pointer to the count of vertices, or a pointer to the required capacity in the case thatvertexCapacityInputis 0.XrSceneMeshVertexBufferMSFTvertexCountOutput(int value)Sets the specified value to thevertexCountOutput()field.XrVector3f.Buffervertices()an array ofXrVector3ffilled in by the runtime returns the position of vertices in the mesh component’s space.XrSceneMeshVertexBufferMSFTvertices(XrVector3f.Buffer value)Sets the address of the specifiedXrVector3f.Bufferto thevertices()field.
-
-
-
Constructor Detail
-
XrSceneMeshVertexBufferMSFT
public XrSceneMeshVertexBufferMSFT(java.nio.ByteBuffer container)
Creates aXrSceneMeshVertexBufferMSFTinstance 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.
-
vertexCapacityInput
public int vertexCapacityInput()
the capacity of the array, or 0 to indicate a request to retrieve the required capacity.
-
vertexCountOutput
public int vertexCountOutput()
a pointer to the count of vertices, or a pointer to the required capacity in the case thatvertexCapacityInputis 0.
-
vertices
@Nullable public XrVector3f.Buffer vertices()
an array ofXrVector3ffilled in by the runtime returns the position of vertices in the mesh component’s space.
-
type
public XrSceneMeshVertexBufferMSFT type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrSceneMeshVertexBufferMSFT type$Default()
Sets theTYPE_SCENE_MESH_VERTEX_BUFFER_MSFTvalue to thetype()field.
-
next
public XrSceneMeshVertexBufferMSFT next(long value)
Sets the specified value to thenext()field.
-
vertexCapacityInput
public XrSceneMeshVertexBufferMSFT vertexCapacityInput(int value)
Sets the specified value to thevertexCapacityInput()field.
-
vertexCountOutput
public XrSceneMeshVertexBufferMSFT vertexCountOutput(int value)
Sets the specified value to thevertexCountOutput()field.
-
vertices
public XrSceneMeshVertexBufferMSFT vertices(@Nullable XrVector3f.Buffer value)
Sets the address of the specifiedXrVector3f.Bufferto thevertices()field.
-
set
public XrSceneMeshVertexBufferMSFT set(int type, long next, int vertexCapacityInput, int vertexCountOutput, @Nullable XrVector3f.Buffer vertices)
Initializes this struct with the specified values.
-
set
public XrSceneMeshVertexBufferMSFT set(XrSceneMeshVertexBufferMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSceneMeshVertexBufferMSFT malloc()
Returns a newXrSceneMeshVertexBufferMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSceneMeshVertexBufferMSFT calloc()
Returns a newXrSceneMeshVertexBufferMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSceneMeshVertexBufferMSFT create()
Returns a newXrSceneMeshVertexBufferMSFTinstance allocated withBufferUtils.
-
create
public static XrSceneMeshVertexBufferMSFT create(long address)
Returns a newXrSceneMeshVertexBufferMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrSceneMeshVertexBufferMSFT createSafe(long address)
-
malloc
public static XrSceneMeshVertexBufferMSFT.Buffer malloc(int capacity)
Returns a newXrSceneMeshVertexBufferMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSceneMeshVertexBufferMSFT.Buffer calloc(int capacity)
Returns a newXrSceneMeshVertexBufferMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSceneMeshVertexBufferMSFT.Buffer create(int capacity)
Returns a newXrSceneMeshVertexBufferMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSceneMeshVertexBufferMSFT.Buffer create(long address, int capacity)
Create aXrSceneMeshVertexBufferMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSceneMeshVertexBufferMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSceneMeshVertexBufferMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneMeshVertexBufferMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSceneMeshVertexBufferMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneMeshVertexBufferMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSceneMeshVertexBufferMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneMeshVertexBufferMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSceneMeshVertexBufferMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneMeshVertexBufferMSFT.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().
-
nvertexCapacityInput
public static int nvertexCapacityInput(long struct)
Unsafe version ofvertexCapacityInput().
-
nvertexCountOutput
public static int nvertexCountOutput(long struct)
Unsafe version ofvertexCountOutput().
-
nvertices
@Nullable public static XrVector3f.Buffer nvertices(long struct)
Unsafe version ofvertices().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nvertexCapacityInput
public static void nvertexCapacityInput(long struct, int value)Sets the specified value to thevertexCapacityInputfield of the specifiedstruct.
-
nvertexCountOutput
public static void nvertexCountOutput(long struct, int value)Unsafe version ofvertexCountOutput.
-
nvertices
public static void nvertices(long struct, @Nullable XrVector3f.Buffer value)Unsafe version ofvertices.
-
-