![]() |
Public API Reference |
#include <csanim2d.h>
Public Methods | |
csAnimationTemplate () | |
build a new animation. More... | |
~csAnimationTemplate () | |
destructor. More... | |
int | GetFrameCount () const |
get number of frames. More... | |
csTicks | GetLength () const |
get total length of animation (all delays added together). More... | |
void | AddFrame (csTicks Delay, csPixmap *s) |
add a frame. (giving the length of this frame). More... | |
void | AddFrame (csTicks Delay, iTextureHandle *Tex) |
add a frame (giving the length of this frame). More... | |
void | AddFrame (csTicks Delay, iTextureHandle *Tex, int x, int y, int w, int h) |
add a frame (giving the length of this frame). More... | |
csPixmap * | GetFrame (int n) const |
get a frame by number. More... | |
csPixmap * | GetFrameByTime (csTicks Time) |
get a frame by time. More... | |
csAnimatedPixmap * | CreateInstance () |
create an instance of this animation. More... |
Definition at line 32 of file csanim2d.h.
|
build a new animation.
|
|
destructor.
|
|
add a frame (giving the length of this frame).
Definition at line 62 of file csanim2d.h. |
|
add a frame (giving the length of this frame).
Definition at line 59 of file csanim2d.h. |
|
add a frame. (giving the length of this frame).
Definition at line 56 of file csanim2d.h. References csTicks, GetLength, csPDelArray::Push, and csBasicVector::Push. Referenced by AddFrame. |
|
create an instance of this animation.
|
|
get a frame by number.
Definition at line 66 of file csanim2d.h. References csPDelArray::Get. |
|
get a frame by time.
|
|
get number of frames.
Definition at line 50 of file csanim2d.h. References csPDelArray::Length. Referenced by GetLength. |
|
get total length of animation (all delays added together).
Definition at line 53 of file csanim2d.h. References csTicks, csBasicVector::Get, and GetFrameCount. Referenced by AddFrame. |