Mesh buffers can be updated between TriangleMeshBeginUpdateFB and TriangleMeshEndUpdateFB calls.
If the mesh is non-mutable, vertexBuffer must be a pointer to an array of vertexCount XrVector3f structures. If the mesh is non-mutable, indexBuffer must be a pointer to an array of 3 * triangleCount uint32_t vertex indices.
XR_FB_triangle_mesh extension must be enabled prior to using XrTriangleMeshCreateInfoFBtype must be TYPE_TRIANGLE_MESH_CREATE_INFO_FBnext must be NULL or a valid pointer to the next structure in a structure chainflags must be 0 or a valid combination of XrTriangleMeshFlagBitsFB valueswindingOrder must be a valid XrWindingOrderFB valueXrVector3f, CreateTriangleMeshFB
struct XrTriangleMeshCreateInfoFB {
XrStructureType type;
void const * next;
XrTriangleMeshFlagsFB flags;
XrWindingOrderFB windingOrder;
uint32_t vertexCount;
XrVector3f const * vertexBuffer;
uint32_t triangleCount;
uint32_t const * indexBuffer;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | XrTriangleMeshCreateInfoFB.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | FLAGS
The struct member offsets. |
| public static final int | INDEXBUFFER
The struct member offsets. |
| public static final int | NEXT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | TRIANGLECOUNT
The struct member offsets. |
| public static final int | TYPE
The struct member offsets. |
| public static final int | VERTEXBUFFER
The struct member offsets. |
| public static final int | VERTEXCOUNT
The struct member offsets. |
| public static final int | WINDINGORDER
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | XrTriangleMeshCreateInfoFB(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static XrTriangleMeshCreateInfoFB | |
| public static XrTriangleMeshCreateInfoFB. | calloc(int
the buffer capacity capacity)Returns a new |
| public static XrTriangleMeshCreateInfoFB | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrTriangleMeshCreateInfoFB. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected XrTriangleMeshCreateInfoFB | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static XrTriangleMeshCreateInfoFB | |
| public static XrTriangleMeshCreateInfoFB | create(long address)
Returns a new |
| public static XrTriangleMeshCreateInfoFB. | create(int
the buffer capacity capacity)Returns a new |
| public static XrTriangleMeshCreateInfoFB. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static XrTriangleMeshCreateInfoFB | |
| public static XrTriangleMeshCreateInfoFB. | |
| public long | |
| public XrTriangleMeshCreateInfoFB | |
| public IntBuffer | Returns: the triangle indices. The size of the array must betriangleCount elements. When the mesh is mutable (({@code flags} & {@link FBTriangleMesh#XR_TRIANGLE_MESH_MUTABLE_BIT_FB TRIANGLE_MESH_MUTABLE_BIT_FB}) != 0), the indexBuffer parameter must be NULL and mesh data must be populated separately.the number of elements in the returned buffer capacity)
|
| public XrTriangleMeshCreateInfoFB | |
| public static XrTriangleMeshCreateInfoFB | |
| public static XrTriangleMeshCreateInfoFB. | malloc(int
the buffer capacity capacity)Returns a new |
| public static XrTriangleMeshCreateInfoFB | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrTriangleMeshCreateInfoFB. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public long | |
| public XrTriangleMeshCreateInfoFB | |
| public static long | |
| public static void | |
| public static IntBuffer | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static XrVector3f | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public XrTriangleMeshCreateInfoFB | set(int type, long next, long flags, int windingOrder, int vertexCount, XrVector3f vertexBuffer, int triangleCount, IntBuffer indexBuffer)
Initializes this struct with the specified values. |
| public XrTriangleMeshCreateInfoFB | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public XrTriangleMeshCreateInfoFB | |
| public int | |
| public XrTriangleMeshCreateInfoFB | |
| public XrTriangleMeshCreateInfoFB | |
| public XrVector3f | |
| public XrTriangleMeshCreateInfoFB | vertexBuffer(XrVector3f value)
Sets the address of the specified |
| public int | |
| public XrTriangleMeshCreateInfoFB | |
| public int | |
| public XrTriangleMeshCreateInfoFB |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| FLAGS | back to summary |
|---|---|
| public static final int FLAGS The struct member offsets. | |
| INDEXBUFFER | back to summary |
|---|---|
| public static final int INDEXBUFFER The struct member offsets. | |
| NEXT | back to summary |
|---|---|
| public static final int NEXT The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| TRIANGLECOUNT | back to summary |
|---|---|
| public static final int TRIANGLECOUNT The struct member offsets. | |
| TYPE | back to summary |
|---|---|
| public static final int TYPE The struct member offsets. | |
| VERTEXBUFFER | back to summary |
|---|---|
| public static final int VERTEXBUFFER The struct member offsets. | |
| VERTEXCOUNT | back to summary |
|---|---|
| public static final int VERTEXCOUNT The struct member offsets. | |
| WINDINGORDER | back to summary |
|---|---|
| public static final int WINDINGORDER The struct member offsets. | |
| XrTriangleMeshCreateInfoFB | back to summary |
|---|---|
| protected XrTriangleMeshCreateInfoFB(long address, ByteBuffer container) | |
| XrTriangleMeshCreateInfoFB | back to summary |
|---|---|
| public XrTriangleMeshCreateInfoFB(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static XrTriangleMeshCreateInfoFB calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static XrTriangleMeshCreateInfoFB. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrTriangleMeshCreateInfoFB calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrTriangleMeshCreateInfoFB. Returns a new
| |
| create | back to summary |
|---|---|
| protected XrTriangleMeshCreateInfoFB create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static XrTriangleMeshCreateInfoFB create() Returns a new | |
| create | back to summary |
|---|---|
| public static XrTriangleMeshCreateInfoFB create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static XrTriangleMeshCreateInfoFB. Returns a new
| |
| create | back to summary |
|---|---|
| public static XrTriangleMeshCreateInfoFB. Create a
| |
| createSafe | back to summary |
|---|---|
| public static XrTriangleMeshCreateInfoFB createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static XrTriangleMeshCreateInfoFB. Like
| |
| flags | back to summary |
|---|---|
| public long flags() a bitmask of
| |
| flags | back to summary |
|---|---|
| public XrTriangleMeshCreateInfoFB flags(long value) Sets the specified value to the | |
| indexBuffer | back to summary |
|---|---|
public IntBuffer indexBuffer(int capacity)
| |
| indexBuffer | back to summary |
|---|---|
| public XrTriangleMeshCreateInfoFB indexBuffer(IntBuffer value) Sets the address of the specified | |
| malloc | back to summary |
|---|---|
| public static XrTriangleMeshCreateInfoFB malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static XrTriangleMeshCreateInfoFB. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrTriangleMeshCreateInfoFB malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrTriangleMeshCreateInfoFB. Returns a new
| |
| next | back to summary |
|---|---|
| public long next()
| |
| next | back to summary |
|---|---|
| public XrTriangleMeshCreateInfoFB next(long value) Sets the specified value to the | |
| nflags | back to summary |
|---|---|
| public static long nflags(long struct) Unsafe version of | |
| nflags | back to summary |
|---|---|
| public static void nflags(long struct, long value) Unsafe version of | |
| nindexBuffer | back to summary |
|---|---|
| public static IntBuffer nindexBuffer(long struct, int capacity) Unsafe version of
| |
| nindexBuffer | back to summary |
|---|---|
| public static void nindexBuffer(long struct, IntBuffer value) Unsafe version of | |
| nnext | back to summary |
|---|---|
| public static long nnext(long struct) Unsafe version of | |
| nnext | back to summary |
|---|---|
| public static void nnext(long struct, long value) Unsafe version of | |
| ntriangleCount | back to summary |
|---|---|
| public static int ntriangleCount(long struct) Unsafe version of | |
| ntriangleCount | back to summary |
|---|---|
| public static void ntriangleCount(long struct, int value) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static int ntype(long struct) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static void ntype(long struct, int value) Unsafe version of | |
| nvertexBuffer | back to summary |
|---|---|
| public static XrVector3f nvertexBuffer(long struct) Unsafe version of
| |
| nvertexBuffer | back to summary |
|---|---|
| public static void nvertexBuffer(long struct, XrVector3f value) Unsafe version of | |
| nvertexCount | back to summary |
|---|---|
| public static int nvertexCount(long struct) Unsafe version of | |
| nvertexCount | back to summary |
|---|---|
| public static void nvertexCount(long struct, int value) Unsafe version of | |
| nwindingOrder | back to summary |
|---|---|
| public static int nwindingOrder(long struct) Unsafe version of | |
| nwindingOrder | back to summary |
|---|---|
| public static void nwindingOrder(long struct, int value) Unsafe version of | |
| set | back to summary |
|---|---|
| public XrTriangleMeshCreateInfoFB set(int type, long next, long flags, int windingOrder, int vertexCount, XrVector3f vertexBuffer, int triangleCount, IntBuffer indexBuffer) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public XrTriangleMeshCreateInfoFB set(XrTriangleMeshCreateInfoFB src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| triangleCount | back to summary |
|---|---|
| public int triangleCount() the number of triangles in the mesh. In the case of the mutable mesh, the value is treated as the maximum number of triangles the mesh will be able to represent at any time in its lifecycle. The actual number of triangles can vary and is defined when
| |
| triangleCount | back to summary |
|---|---|
| public XrTriangleMeshCreateInfoFB triangleCount(int value) Sets the specified value to the | |
| type | back to summary |
|---|---|
| public int type() the
| |
| type | back to summary |
|---|---|
| public XrTriangleMeshCreateInfoFB type(int value) Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrTriangleMeshCreateInfoFB type$Default() Sets the | |
| vertexBuffer | back to summary |
|---|---|
| public XrVector3f vertexBuffer() a pointer to the vertex data. The size of the array must be
| |
| vertexBuffer | back to summary |
|---|---|
| public XrTriangleMeshCreateInfoFB vertexBuffer(XrVector3f value) Sets the address of the specified | |
| vertexCount | back to summary |
|---|---|
| public int vertexCount() the number of vertices in the mesh. In the case of the mutable mesh, the value is treated as the maximum number of vertices the mesh will be able to represent at any time in its lifecycle. The actual number of vertices can vary and is defined when
| |
| vertexCount | back to summary |
|---|---|
| public XrTriangleMeshCreateInfoFB vertexCount(int value) Sets the specified value to the | |
| windingOrder | back to summary |
|---|---|
| public int windingOrder() the
| |
| windingOrder | back to summary |
|---|---|
| public XrTriangleMeshCreateInfoFB windingOrder(int value) Sets the specified value to the | |
XrTriangleMeshCreateInfoFB structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final XrTriangleMeshCreateInfoFB |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final XrTriangleMeshCreateInfoFB ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| flags | back to summary |
|---|---|
public long flags()
| |
| flags | back to summary |
|---|---|
| public XrTriangleMeshCreateInfoFB. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected XrTriangleMeshCreateInfoFB getElementFactory() Implements abstract org.
| |
| indexBuffer | back to summary |
|---|---|
public IntBuffer indexBuffer(int capacity)
| |
| indexBuffer | back to summary |
|---|---|
| public XrTriangleMeshCreateInfoFB. Sets the address of the specified | |
| next | back to summary |
|---|---|
public long next()
| |
| next | back to summary |
|---|---|
| public XrTriangleMeshCreateInfoFB. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected XrTriangleMeshCreateInfoFB. Implements abstract org.
| |
| triangleCount | back to summary |
|---|---|
public int triangleCount()
| |
| triangleCount | back to summary |
|---|---|
| public XrTriangleMeshCreateInfoFB. Sets the specified value to the | |
| type | back to summary |
|---|---|
public int type()
| |
| type | back to summary |
|---|---|
| public XrTriangleMeshCreateInfoFB. Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrTriangleMeshCreateInfoFB. Sets the | |
| vertexBuffer | back to summary |
|---|---|
public XrVector3f vertexBuffer()
| |
| vertexBuffer | back to summary |
|---|---|
| public XrTriangleMeshCreateInfoFB. Sets the address of the specified | |
| vertexCount | back to summary |
|---|---|
public int vertexCount()
| |
| vertexCount | back to summary |
|---|---|
| public XrTriangleMeshCreateInfoFB. Sets the specified value to the | |
| windingOrder | back to summary |
|---|---|
public int windingOrder()
| |
| windingOrder | back to summary |
|---|---|
| public XrTriangleMeshCreateInfoFB. Sets the specified value to the | |