Spritesheet

Spritesheet Draw animated sprite.

Constructors

this
this(GraphicsDevice graphics, Texture texture, Size!int spriteSize)

Spritesheet constructor.

Members

Functions

addAnimation
void addAnimation(string name, Animation animation)

Adds animation.

draw
void draw(float deltaTime, mat4 view, mat4 projection)
Undocumented in source. Be warned that the author may not have intended to support it.
setAnimation
void setAnimation(string name)

Sets current animation.

setTextureCoords
void setTextureCoords(Rectangle!float rect)

Sets current sprite texture coords.

update
void update(float deltaTime)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta