![]() |
Public API Reference |
#include <sprite2d.h>
Inheritance diagram for iSprite2DUVAnimationFrame:
Public Methods | |
virtual void | SetName (const char *name)=0 |
Give this frame a name. More... | |
virtual const char * | GetName ()=0 |
Return the name of this frame. More... | |
virtual csVector2 & | GetUVCoo (int idx)=0 |
Get the u,v coordinates of the <idx>-th vertex. More... | |
virtual const csVector2 * | GetUVCoo ()=0 |
Get all u,v coordinates. More... | |
virtual int | GetUVCount ()=0 |
Get the number of (u,v) coordinates. More... | |
virtual void | SetUV (int idx, float u, float v)=0 |
Set the (u,v) coordinate of <idx>-th coo. More... | |
virtual void | SetFrameData (const char *name, int duration, int num, float *uv)=0 |
Set all (u,v) coordinates and the name and duration. More... | |
virtual void | RemoveUV (int idx)=0 |
Remove the <idx>-th coordinate. More... | |
virtual int | GetDuration ()=0 |
Return the duration of this frame. More... | |
virtual void | SetDuration (int duration)=0 |
Set the duration of this frame. More... |
So its not much more than a set of (u.v) coordinates and a duration time.
Definition at line 46 of file sprite2d.h.
|
Return the duration of this frame.
|
|
Return the name of this frame.
|
|
Get all u,v coordinates.
|
|
Get the u,v coordinates of the <idx>-th vertex.
|
|
Get the number of (u,v) coordinates.
|
|
Remove the <idx>-th coordinate.
|
|
Set the duration of this frame.
|
|
Set all (u,v) coordinates and the name and duration.
|
|
Give this frame a name.
|
|
Set the (u,v) coordinate of <idx>-th coo. Set idx to -1 to append it |