java.lang.Object
Prepares a drawable from a "pre-fabricated" shape definition.
Does no EGL/GL operations, so this can be done at any time.
public Drawable2d(Drawable2d.Prefab shape)
Returns the array of vertices.
To avoid allocations, this returns internal state. The caller must not modify it.
public java.nio.FloatBuffer getVertexArray()
Returns the array of texture coordinates.
To avoid allocations, this returns internal state. The caller must not modify it.
public java.nio.FloatBuffer getTexCoordArray()
Returns the number of vertices stored in the vertex array.
public int getVertexCount()
Returns the width, in bytes, of the data for each vertex.
public int getVertexStride()
Returns the width, in bytes, of the data for each texture coordinate.
public int getTexCoordStride()
Returns the number of position coordinates per vertex. This will be 2 or 3.
public int getCoordsPerVertex()
public java.lang.String toString()
From Class | Methods |
---|---|
java.lang.Object | getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize |