java.lang.Object | |
↳ | io.kickflip.sdk.av.Drawable2d |
Base class for stuff we like to draw.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Drawable2d.Prefab | Enum values for constructor. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Prepares a drawable from a "pre-fabricated" shape definition.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the number of position coordinates per vertex.
| |||||||||||
Returns the array of vertices.
| |||||||||||
Returns the number of vertices stored in the vertex array.
| |||||||||||
Returns the width, in bytes, of the data for each vertex.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
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.
Returns the number of position coordinates per vertex. This will be 2 or 3.
Returns the array of vertices.
To avoid allocations, this returns internal state. The caller must not modify it.
Returns the number of vertices stored in the vertex array.
Returns the width, in bytes, of the data for each vertex.