public class Drawable2d
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Drawable2d.Prefab
Enum values for the constructor to identify which shape to define.
|
Constructor and Description |
---|
Drawable2d(Drawable2d.Prefab shape)
Prepares a drawable from a shape definition.
|
Modifier and Type | Method and Description |
---|---|
int |
getCoordsPerVertex()
Gets the number of position coordinates per vertex, either 2 or 3.
|
java.nio.FloatBuffer |
getTexCoordArray()
Gets the array of texture coordinates.
|
int |
getTexCoordStride()
Gets the width, in bytes, of the data for each texture coordinate.
|
java.nio.FloatBuffer |
getVertexArray()
Gets the array of vertices.
|
int |
getVertexCount()
Gets the number of vertices stored in the vertex array.
|
int |
getVertexStride()
Gets 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
© 2016 - 2018 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal