iSprite2DUVAnimation Struct Reference
The animation works by having all frames of an animation sequence in a texture at different (u,v) locations, hence the name. More...
#include <imesh/sprite2d.h>
Inheritance diagram for iSprite2DUVAnimation:

Public Member Functions | |
virtual iSprite2DUVAnimationFrame * | CreateFrame (int idx)=0 |
Create a new frame that will be inserted before the idx'th frame. | |
virtual iSprite2DUVAnimationFrame * | GetFrame (const char *name)=0 |
Get the frame name in the animation. | |
virtual iSprite2DUVAnimationFrame * | GetFrame (int idx)=0 |
Get the idx'th frame in the animation. | |
virtual int | GetFrameCount ()=0 |
Retrieve the number of frames in this animation. | |
virtual const char * | GetName () const =0 |
return the name of this sequence. | |
virtual void | MoveFrame (int frame, int idx)=0 |
Move the frame'th frame before the idx'th frame. | |
virtual void | RemoveFrame (int idx)=0 |
Remove the idx'th from the animation. | |
virtual void | SetName (const char *name)=0 |
Give this sequence a name. |
Detailed Description
The animation works by having all frames of an animation sequence in a texture at different (u,v) locations, hence the name.So it is basically a set of (u,v) coordinates plus a duration number. for every frame.
Definition at line 107 of file sprite2d.h.
Member Function Documentation
|
Create a new frame that will be inserted before the idx'th frame. Set `idx' to -1 to append the frame to the sequence. |
|
Get the frame name in the animation.
|
|
Get the idx'th frame in the animation. Set idx to -1 to get the current to be played. |
|
Retrieve the number of frames in this animation.
|
|
return the name of this sequence.
|
|
Move the frame'th frame before the idx'th frame. Set idx to -1 to move the frame to the end of the sequence. |
|
Remove the idx'th from the animation.
|
|
Give this sequence a name.
|
The documentation for this struct was generated from the following file:
- imesh/sprite2d.h
Generated for Crystal Space by doxygen 1.4.4