iSprite2DUVAnimationFrame Struct Reference
This is a single frame in a UV animation. More...
#include <sprite2d.h>
Inheritance diagram for iSprite2DUVAnimationFrame:

Public Methods | |
virtual void | SetName (const char *name)=0 |
Give this frame a name. | |
virtual const char * | GetName () const=0 |
Return the name of this frame. | |
virtual csVector2 & | GetUVCoo (int idx)=0 |
Get the u,v coordinates of the <idx>-th vertex. | |
virtual const csVector2 * | GetUVCoo ()=0 |
Get all u,v coordinates. | |
virtual int | GetUVCount ()=0 |
Get the number of (u,v) coordinates. | |
virtual void | SetUV (int idx, float u, float v)=0 |
Set the (u,v) coordinate of <idx>-th coo. | |
virtual void | SetFrameData (const char *name, int duration, int num, float *uv)=0 |
Set all (u,v) coordinates and the name and duration. | |
virtual void | RemoveUV (int idx)=0 |
Remove the <idx>-th coordinate. | |
virtual int | GetDuration ()=0 |
Return the duration of this frame. | |
virtual void | SetDuration (int duration)=0 |
Set the duration of this frame. |
Detailed Description
This is a single frame in a UV animation.So its not much more than a set of (u.v) coordinates and a duration time.
Definition at line 46 of file sprite2d.h.
Member Function Documentation
|
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 |
The documentation for this struct was generated from the following file:
- imesh/sprite2d.h
Generated for Crystal Space by doxygen 1.2.18