![]() |
Public API Reference |
#include <sprite2d.h>
Inheritance diagram for iSprite2DUVAnimation:
Public Methods | |
virtual void | SetName (const char *name)=0 |
Give this sequence a name. More... | |
virtual const char * | GetName () const=0 |
return the name of this sequence. More... | |
virtual int | GetFrameCount ()=0 |
Retrieve the number of frames in this animation. More... | |
virtual iSprite2DUVAnimationFrame * | GetFrame (int idx)=0 |
Get the <idx>-th frame in the animation. More... | |
virtual iSprite2DUVAnimationFrame * | GetFrame (const char *name)=0 |
Get the frame <name> in the animation. More... | |
virtual iSprite2DUVAnimationFrame * | CreateFrame (int idx)=0 |
Create a new frame that will be inserted before the <idx> frame. More... | |
virtual void | MoveFrame (int frame, int idx)=0 |
Move the <frame>-th frame before the <idx>-th frame. More... | |
virtual void | RemoveFrame (int idx)=0 |
Remove the <idx>-th from the animation. More... |
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.
|
Create a new frame that will be inserted before the <idx> 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.
|