ScaledDrawable2d

Tweaked version of Drawable2d that rescales the texture coordinates to provide a "zoom" effect.

Constructors

Link copied to clipboard
constructor(shape: Drawable2d.Prefab)
Trivial 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 setScale(scale: Float)
Set the scale factor.
Link copied to clipboard
open fun toString(): String