csAnimationTemplate Class Reference
A 2d animation template. This class is used to create animated pixmaps. More...
#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 |
Detailed Description
A 2d animation template. This class is used to create animated pixmaps.
Definition at line 34 of file csanim2d.h.
Constructor & Destructor Documentation
|
build a new animation
|
|
destructor
|
Member Function Documentation
|
add a frame (giving the length of this frame)
Definition at line 64 of file csanim2d.h. References csTicks. |
|
add a frame (giving the length of this frame)
Definition at line 61 of file csanim2d.h. References csTicks. |
|
add a frame. (giving the length of this frame)
Definition at line 58 of file csanim2d.h. References csTicks. |
|
create an instance of this animation
|
|
get a frame by number
Definition at line 69 of file csanim2d.h. References csArray< T *, csPDelArrayElementHandler< T * > >::Get(). |
|
get a frame by time
|
|
get number of frames
Definition at line 52 of file csanim2d.h. References csArray< T *, csPDelArrayElementHandler< T * > >::Length(). |
|
get total length of animation (all delays added together)
Definition at line 55 of file csanim2d.h. References csTicks. |
The documentation for this class was generated from the following file:
- cstool/csanim2d.h
Generated for Crystal Space by doxygen 1.2.18