Package org.lwjgl.util.par
Class ParSLMesh.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<ParSLMesh,ParSLMesh.Buffer>
-
- org.lwjgl.util.par.ParSLMesh.Buffer
-
- All Implemented Interfaces:
java.lang.Iterable<ParSLMesh>,org.lwjgl.system.Pointer
- Enclosing class:
- ParSLMesh
public static class ParSLMesh.Buffer extends org.lwjgl.system.StructBuffer<ParSLMesh,ParSLMesh.Buffer>
An array ofParSLMeshstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParSLAnnotation.Bufferannotations()intnum_triangles()intnum_vertices()ParSLPosition.Bufferpositions()java.nio.FloatBufferrandom_offsets()java.nio.FloatBufferspine_lengths()java.nio.IntBuffertriangle_indices(int capacity)
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newParSLMesh.Bufferinstance 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 byParSLMesh.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
num_vertices
public int num_vertices()
- Returns:
- the value of the
num_verticesfield.
-
num_triangles
public int num_triangles()
- Returns:
- the value of the
num_trianglesfield.
-
triangle_indices
public java.nio.IntBuffer triangle_indices(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
IntBufferview of the data pointed to by thetriangle_indicesfield.
-
positions
public ParSLPosition.Buffer positions()
- Returns:
- a
ParSLPosition.Bufferview of the struct array pointed to by thepositionsfield.
-
annotations
@Nullable public ParSLAnnotation.Buffer annotations()
- Returns:
- a
ParSLAnnotation.Bufferview of the struct array pointed to by theannotationsfield.
-
spine_lengths
@Nullable public java.nio.FloatBuffer spine_lengths()
- Returns:
- a
FloatBufferview of the data pointed to by thespine_lengthsfield.
-
random_offsets
@Nullable public java.nio.FloatBuffer random_offsets()
- Returns:
- a
FloatBufferview of the data pointed to by therandom_offsetsfield.
-
-