This class contains everything to construct a sprite - its data, default settings etc. More...
Derived from: | None |
Derived by: | None |
Group: | 2D (Display) |
#include <ClanLib/display.h>
Class Members:
Construction: | |
Constructs a sprite description. |
| |
Returns a list over all available frames. |
| |
Adds a single image. | |
Add frames. | |
Adds images formed in a grid. | |
Adds images separated with pure alpha (within trans_limit). | |
Adds images separated with pure alpha (within trans_limit). | |
Sets the duration this frame is displayed, in seconds. |
Detailed description:
CL_SpriteDescription is used by CL_Sprite to construct itself based on the description. The description class give a big flexibility creating a sprite, individual frames can come from different image sources, or be cut out from an image source using various different techniques.