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 ofParSLMesh
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParSLAnnotation.Buffer
annotations()
Returns aParSLAnnotation.Buffer
view of the struct array pointed to by theannotations
field.int
num_triangles()
Returns the value of thenum_triangles
field.int
num_vertices()
Returns the value of thenum_vertices
field.ParSLPosition.Buffer
positions()
Returns aParSLPosition.Buffer
view of the struct array pointed to by thepositions
field.java.nio.FloatBuffer
random_offsets()
Returns aFloatBuffer
view of the data pointed to by therandom_offsets
field.java.nio.FloatBuffer
spine_lengths()
Returns aFloatBuffer
view of the data pointed to by thespine_lengths
field.java.nio.IntBuffer
triangle_indices(int capacity)
Returns aIntBuffer
view of the data pointed to by thetriangle_indices
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newParSLMesh.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 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 thenum_vertices
field.
-
num_triangles
public int num_triangles()
Returns the value of thenum_triangles
field.
-
triangle_indices
public java.nio.IntBuffer triangle_indices(int capacity)
Returns aIntBuffer
view of the data pointed to by thetriangle_indices
field.- Parameters:
capacity
- the number of elements in the returned buffer
-
positions
public ParSLPosition.Buffer positions()
Returns aParSLPosition.Buffer
view of the struct array pointed to by thepositions
field.
-
annotations
@Nullable public ParSLAnnotation.Buffer annotations()
Returns aParSLAnnotation.Buffer
view of the struct array pointed to by theannotations
field.
-
spine_lengths
@Nullable public java.nio.FloatBuffer spine_lengths()
Returns aFloatBuffer
view of the data pointed to by thespine_lengths
field.
-
random_offsets
@Nullable public java.nio.FloatBuffer random_offsets()
Returns aFloatBuffer
view of the data pointed to by therandom_offsets
field.
-
-