Drawable2d

open class Drawable2d

Base class for stuff we like to draw.

Inheritors

Constructors

Link copied to clipboard
constructor(shape: Drawable2d.Prefab)
Prepares a drawable from a "pre-fabricated" shape definition.

Types

Link copied to clipboard
enum Prefab
Enum values for constructor.

Functions

Link copied to clipboard
Returns the number of position coordinates per vertex.
Link copied to clipboard
Returns the array of texture coordinates.
Link copied to clipboard
Returns the width, in bytes, of the data for each texture coordinate.
Link copied to clipboard
Returns the array of vertices.
Link copied to clipboard
open fun getVertexCount(): Int
Returns the number of vertices stored in the vertex array.
Link copied to clipboard
open fun getVertexStride(): Int
Returns the width, in bytes, of the data for each vertex.
Link copied to clipboard
open fun toString(): String