Sprite2d
Base class for a 2d object. Includes position, scale, rotation, and flat-shaded color.
Functions
Link copied to clipboard
Draws the rectangle with the supplied program and projection matrix.
Link copied to clipboard
Returns the model-view matrix.
Link copied to clipboard
Returns the position on the X axis.
Link copied to clipboard
Returns the position on the Y axis.
Link copied to clipboard
Gets the sprite rotation angle, in degrees.
Link copied to clipboard
Sets the sprite position.
Link copied to clipboard
Sets the sprite rotation angle, in degrees.
Link copied to clipboard
Sets texture to use for textured rendering.