public static class MeshoptMeshlet.Buffer extends org.lwjgl.system.StructBuffer<MeshoptMeshlet,MeshoptMeshlet.Buffer> implements org.lwjgl.system.NativeResource
MeshoptMeshlet structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
MeshoptMeshlet.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
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. |
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. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
MeshoptMeshlet.Buffer instance backed by the specified container.
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 MeshoptMeshlet.SIZEOF, and its mark will be undefined.
The created buffer instance holds a strong reference to the container object.
public Buffer(long address,
int cap)
public 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.Copyright LWJGL. All Rights Reserved. License terms.