Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csAnimationTemplate Class Reference

A 2d animation template. This class is used to create animated pixmaps. More...

#include <csanim2d.h>

List of all members.

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).

csPixmapGetFrame (int n) const
 get a frame by number.

csPixmapGetFrameByTime (csTicks Time)
 get a frame by time.

csAnimatedPixmapCreateInstance ()
 create an instance of this animation.


Detailed Description

A 2d animation template. This class is used to create animated pixmaps.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000