Interface ConstVertexList
- All Known Implementing Classes:
VertexList
public interface ConstVertexList
Read-only access to a
VertexList. (native type: const VertexList)-
Method Summary
Modifier and TypeMethodDescriptionintcapacity()Count how many vertices can be held in the currently allocated storage.booleanempty()Test whether the list contains no vertices.get(int listIndex) Copy the vertex at the specified index.intsize()Count how many vertices are in the list.Access a direct buffer containing all vertices in the list, in order.
-
Method Details
-
capacity
int capacity()Count how many vertices can be held in the currently allocated storage. The list is unaffected.- Returns:
- the number of vertices (≥0)
-
empty
boolean empty()Test whether the list contains no vertices. The list is unaffected.- Returns:
trueif empty, otherwisefalse
-
get
Copy the vertex at the specified index. The list is unaffected.- Parameters:
listIndex- the index from which to get the vertex- Returns:
- the vertex
-
size
int size()Count how many vertices are in the list. The list is unaffected.- Returns:
- the number of vertices (≥0)
-
toDirectBuffer
FloatBuffer toDirectBuffer()Access a direct buffer containing all vertices in the list, in order. No furtherresize()orset()is allowed.- Returns:
- the pre-existing Buffer, flipped but possibly not rewound
-