public class Drawable2d
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Drawable2d.Prefab
Enum values for constructor.
|
| Constructor and Description |
|---|
Drawable2d(Drawable2d.Prefab shape)
Prepares a drawable from a "pre-fabricated" shape definition.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCoordsPerVertex()
Returns the number of position coordinates per vertex.
|
java.nio.FloatBuffer |
getTexCoordArray()
Returns the array of texture coordinates.
|
int |
getTexCoordStride()
Returns the width, in bytes, of the data for each texture coordinate.
|
java.nio.FloatBuffer |
getVertexArray()
Returns the array of vertices.
|
int |
getVertexCount()
Returns the number of vertices stored in the vertex array.
|
int |
getVertexStride()
Returns the width, in bytes, of the data for each vertex.
|
java.lang.String |
toString() |
public Drawable2d(Drawable2d.Prefab shape)
public java.nio.FloatBuffer getVertexArray()
public java.nio.FloatBuffer getTexCoordArray()
public int getVertexCount()
public int getVertexStride()
public int getTexCoordStride()
public int getCoordsPerVertex()
public java.lang.String toString()
toString in class java.lang.Object