public class MeshoptMeshlet
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct meshopt_Meshlet {
unsigned int vertices[64];
unsigned char indices[126][3];
unsigned char triangle_count;
unsigned char vertex_count;
}| Modifier and Type | Class and Description |
|---|---|
static class |
MeshoptMeshlet.Buffer
An array of
MeshoptMeshlet structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
INDICES
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TRIANGLE_COUNT
The struct member offsets.
|
static int |
VERTEX_COUNT
The struct member offsets.
|
static int |
VERTICES
The struct member offsets.
|
| Constructor and Description |
|---|
MeshoptMeshlet(java.nio.ByteBuffer container)
Creates a
MeshoptMeshlet instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static MeshoptMeshlet |
calloc()
Returns a new
MeshoptMeshlet instance allocated with memCalloc. |
static MeshoptMeshlet.Buffer |
calloc(int capacity)
Returns a new
MeshoptMeshlet.Buffer instance allocated with memCalloc. |
static MeshoptMeshlet |
callocStack()
Returns a new
MeshoptMeshlet instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static MeshoptMeshlet.Buffer |
callocStack(int capacity)
Returns a new
MeshoptMeshlet.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static MeshoptMeshlet.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
MeshoptMeshlet.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static MeshoptMeshlet |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
MeshoptMeshlet instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static MeshoptMeshlet |
create()
Returns a new
MeshoptMeshlet instance allocated with BufferUtils. |
static MeshoptMeshlet.Buffer |
create(int capacity)
Returns a new
MeshoptMeshlet.Buffer instance allocated with BufferUtils. |
static MeshoptMeshlet |
create(long address)
Returns a new
MeshoptMeshlet instance for the specified memory address. |
static MeshoptMeshlet.Buffer |
create(long address,
int capacity)
Create a
MeshoptMeshlet.Buffer instance at the specified memory. |
static MeshoptMeshlet |
createSafe(long address)
|
static MeshoptMeshlet.Buffer |
createSafe(long address,
int capacity)
|
java.nio.ByteBuffer |
indices()
Returns a
ByteBuffer view of the indices field. |
byte |
indices(int index)
Returns the value at the specified index of the
indices field. |
static MeshoptMeshlet |
malloc()
Returns a new
MeshoptMeshlet instance allocated with memAlloc. |
static MeshoptMeshlet.Buffer |
malloc(int capacity)
Returns a new
MeshoptMeshlet.Buffer instance allocated with memAlloc. |
static MeshoptMeshlet |
mallocStack()
Returns a new
MeshoptMeshlet instance allocated on the thread-local MemoryStack. |
static MeshoptMeshlet.Buffer |
mallocStack(int capacity)
Returns a new
MeshoptMeshlet.Buffer instance allocated on the thread-local MemoryStack. |
static MeshoptMeshlet.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
MeshoptMeshlet.Buffer instance allocated on the specified MemoryStack. |
static MeshoptMeshlet |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
MeshoptMeshlet instance allocated on the specified MemoryStack. |
static java.nio.ByteBuffer |
nindices(long struct)
Unsafe version of
indices(). |
static byte |
nindices(long struct,
int index)
Unsafe version of
indices. |
static byte |
ntriangle_count(long struct)
Unsafe version of
triangle_count(). |
static byte |
nvertex_count(long struct)
Unsafe version of
vertex_count(). |
static java.nio.IntBuffer |
nvertices(long struct)
Unsafe version of
vertices(). |
static int |
nvertices(long struct,
int index)
Unsafe version of
vertices. |
int |
sizeof() |
byte |
triangle_count()
Returns the value of the
triangle_count field. |
byte |
vertex_count()
Returns the value of the
vertex_count field. |
java.nio.IntBuffer |
vertices()
Returns a
IntBuffer view of the vertices field. |
int |
vertices(int index)
Returns the value at the specified index of the
vertices field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int VERTICES
public static final int INDICES
public static final int TRIANGLE_COUNT
public static final int VERTEX_COUNT
public MeshoptMeshlet(java.nio.ByteBuffer container)
MeshoptMeshlet instance at the current position of the specified ByteBuffer container. 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic java.nio.IntBuffer vertices()
IntBuffer view of the vertices field.public int vertices(int index)
vertices field.public java.nio.ByteBuffer indices()
ByteBuffer view of the indices field.public byte indices(int index)
indices field.public byte triangle_count()
triangle_count field.public byte vertex_count()
vertex_count field.public static MeshoptMeshlet malloc()
MeshoptMeshlet instance allocated with memAlloc. The instance must be explicitly freed.public static MeshoptMeshlet calloc()
MeshoptMeshlet instance allocated with memCalloc. The instance must be explicitly freed.public static MeshoptMeshlet create()
MeshoptMeshlet instance allocated with BufferUtils.public static MeshoptMeshlet create(long address)
MeshoptMeshlet instance for the specified memory address.@Nullable public static MeshoptMeshlet createSafe(long address)
public static MeshoptMeshlet.Buffer malloc(int capacity)
MeshoptMeshlet.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static MeshoptMeshlet.Buffer calloc(int capacity)
MeshoptMeshlet.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static MeshoptMeshlet.Buffer create(int capacity)
MeshoptMeshlet.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static MeshoptMeshlet.Buffer create(long address, int capacity)
MeshoptMeshlet.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static MeshoptMeshlet.Buffer createSafe(long address, int capacity)
public static MeshoptMeshlet mallocStack()
MeshoptMeshlet instance allocated on the thread-local MemoryStack.public static MeshoptMeshlet callocStack()
MeshoptMeshlet instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static MeshoptMeshlet mallocStack(org.lwjgl.system.MemoryStack stack)
MeshoptMeshlet instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static MeshoptMeshlet callocStack(org.lwjgl.system.MemoryStack stack)
MeshoptMeshlet instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static MeshoptMeshlet.Buffer mallocStack(int capacity)
MeshoptMeshlet.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static MeshoptMeshlet.Buffer callocStack(int capacity)
MeshoptMeshlet.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static MeshoptMeshlet.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
MeshoptMeshlet.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static MeshoptMeshlet.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
MeshoptMeshlet.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static java.nio.IntBuffer nvertices(long struct)
vertices().public static int nvertices(long struct,
int index)
vertices.public static java.nio.ByteBuffer nindices(long struct)
indices().public static byte nindices(long struct,
int index)
indices.public static byte ntriangle_count(long struct)
triangle_count().public static byte nvertex_count(long struct)
vertex_count().Copyright LWJGL. All Rights Reserved. License terms.