public class VertexArray extends ArrayList<Vertex> implements Drawable
modCount| Constructor and Description |
|---|
VertexArray()
Constructs a new empty vertex array using the
PrimitiveType.POINTS type. |
VertexArray(PrimitiveType primitiveType)
Constructs a new empty vertex array.
|
| Modifier and Type | Method and Description |
|---|---|
void |
draw(RenderTarget target,
RenderStates states)
Draws the object to a render target.
|
FloatRect |
getBounds()
Computes the axis-aligned bounding box of this vertex array.
|
PrimitiveType |
getPrimitiveType()
Gets the type of primitives drawn by this vertex array.
|
void |
setPrimitiveType(PrimitiveType primitiveType)
Sets the type of primitives drawn by this vertex array.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodepublic VertexArray()
PrimitiveType.POINTS type.public VertexArray(PrimitiveType primitiveType)
primitiveType - The type of primitives drawn by this vertex array.public PrimitiveType getPrimitiveType()
public void setPrimitiveType(PrimitiveType primitiveType)
primitiveType - the type of primitives drawn by this vertex array.public FloatRect getBounds()
public void draw(RenderTarget target, RenderStates states)
Drawable