#include <csanim2d.h>
Public Methods | |
csAnimationTemplate () | |
build a new animation. | |
~csAnimationTemplate () | |
destructor. | |
int | GetFrameCount () const |
get number of frames. | |
csTicks | GetLength () const |
get total length of animation (all delays added together). | |
void | AddFrame (csTicks Delay, csPixmap *s) |
add a frame. (giving the length of this frame). | |
void | AddFrame (csTicks Delay, iTextureHandle *Tex) |
add a frame (giving the length of this frame). | |
void | AddFrame (csTicks Delay, iTextureHandle *Tex, int x, int y, int w, int h) |
add a frame (giving the length of this frame). | |
csPixmap* | GetFrame (int n) const |
get a frame by number. | |
csPixmap* | GetFrameByTime (csTicks Time) |
get a frame by time. | |
csAnimatedPixmap* | CreateInstance () |
create an instance of this animation. |