Home | All Classes | Grouped Classes | Index | Search
This class contains everything to construct a sprite - its data, default settings etc. More...
Derived from:
none
Derived by:
none
Group: Display (Sprites)
#include <ClanLib/display.h>
Construction:
Constructs a sprite description. |
Attributes:
CL_PixelBuffer provider, CL_Rect position. | |
Returns a list over all available frames. | |
Returns the surface flag to be used. |
Operations:
Copy assignment operator. | |
Sets what surface flag CL_Sprite should use for its surfaces. | |
Adds a single image. | |
Adds images formed in a grid. | |
Adds images separated with pure alpha (within trans_limit). | |
Adds images separated with pure alpha (within trans_limit). | |
Adds images separated with palette-colours defining the boundaries. |
Detailed description:
!group=Display/Sprites! !header=display.h!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.