Sprite

A sprite is any object that can be drawn with the rendering parameters specified by the programmer, such as position, size, rotation angle, etc. It does not have to be a set of pictures, but some object, for example, that sets the renderer to draw lines to represent an object. This object is IDrawableEx, where you can describe the rendering parameters.

Members

Functions

draw
void draw(IRenderer renderer, Vecf position)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

alpha
ubyte alpha;

The transparency value of the sprite.

angle
float angle;

The rotation angle of the sprite.

center
Vecf center;

The center rotation angle of the sprite.

draws
IDrawableEx draws;

An object that represents a picture.

height
uint height;

Sprite height. (If it is equal to zero, then the size is standard).

matrix
float[4][4] matrix;

Sprite transformation matrix.

position
Vecf position;

Sprite position.

shader
Shader!Program shader;

The shader used for rendering.

skelet
Sprite[] skelet;

A set of other sprites to help create a consistent look for the sprite.

width
uint width;

Sprite width. (If it is equal to zero, then the size is standard).

Inherited Members

From IDrawable

draw
void draw(IRenderer renderer, Vecf position)

draw object implemetation

Meta