public static class ParSLMesh.Buffer extends org.lwjgl.system.StructBuffer<ParSLMesh,ParSLMesh.Buffer>
ParSLMesh structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
ParSLMesh.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
ParSLAnnotation.Buffer |
annotations()
Returns a
ParSLAnnotation.Buffer view of the struct array pointed to by the annotations field. |
int |
num_triangles()
Returns the value of the
num_triangles field. |
int |
num_vertices()
Returns the value of the
num_vertices field. |
ParSLPosition.Buffer |
positions()
Returns a
ParSLPosition.Buffer view of the struct array pointed to by the positions field. |
java.nio.FloatBuffer |
random_offsets()
Returns a
FloatBuffer view of the data pointed to by the random_offsets field. |
java.nio.FloatBuffer |
spine_lengths()
Returns a
FloatBuffer view of the data pointed to by the spine_lengths field. |
java.nio.IntBuffer |
triangle_indices(int capacity)
Returns a
IntBuffer view of the data pointed to by the triangle_indices field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
ParSLMesh.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 ParSLMesh.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 int num_vertices()
num_vertices field.public int num_triangles()
num_triangles field.public java.nio.IntBuffer triangle_indices(int capacity)
IntBuffer view of the data pointed to by the triangle_indices field.capacity - the number of elements in the returned bufferpublic ParSLPosition.Buffer positions()
ParSLPosition.Buffer view of the struct array pointed to by the positions field.@Nullable public ParSLAnnotation.Buffer annotations()
ParSLAnnotation.Buffer view of the struct array pointed to by the annotations field.@Nullable public java.nio.FloatBuffer spine_lengths()
FloatBuffer view of the data pointed to by the spine_lengths field.@Nullable public java.nio.FloatBuffer random_offsets()
FloatBuffer view of the data pointed to by the random_offsets field.Copyright LWJGL. All Rights Reserved. License terms.