Home | All Classes | Grouped Classes | Index | Search
This class handles displaying sprites on the screen. More...
Derived from:
none
Derived by:
none
Group: Display (Sprites)
#include <ClanLib/display.h>
Construction:
Constructs a sprite.  | 
Attributes:
Returns current angle in degrees.  | |
Returns the current rotational yaw angle in degrees.  | |
Returns the current rotational pitch angle in degrees.  | |
Returns the base angle in degrees - angle added to any rotation set with set_rotate() or rotate().  | |
Returns scale for x and y.  | |
Returns current alpha.  | |
Returns current color.  | |
Returns blending functions.  | |
Returns translation hotspot.  | |
Returns rotation hotspot.  | |
Returns current frame in animation. 0 is first frame.  | |
Returns number of frames in animation.  | |
Returns the delay of a frame. 0 is first frame.  | |
Returns the translation offset of a frame. 0 is first frame.  | |
Returns the size of a frame. 0 is first frame.  | |
Return the width of the current frame, shortcut for 'get_frame_size(get_current_frame()).width'  | |
Return the height of the current frame, shortcut for 'get_frame_size(get_current_frame()).height'  | |
Returns the surface of a frame. 0 is first frame.  | |
Returns a CL_PixelBuffer with the same dimensions as this sprite.  | |
Returns the attached id (if exists).  | |
Returns true if this is an unattached sprite.  | |
Returns true if animation is played in loop (more than once).  | |
Returns true if animation is played in from right to left (starts at end).  | |
Returns true if animation is played in ping-pong mode.  | |
Returns an enum for what is shown when the animation is finished.  | |
Returns true if animation is finished.  | |
Returns true if animation has looped in the last update cycle  | |
Resource owning this sprite, if any.  | 
Operations:
Copy assignment operator.  | |
Return true if the CL_Sprite is valid and useable  | |
Sets the image data from another sprite.  | |
Draw sprite on graphic context.  | |
Calculate draw information and send it back. Returns false if sprite isn't currently drawn  | |
Call this function to update the animation.  | |
Set absolute rotation angle in degrees.  | |
Set absolute rotation pitch angle in degrees.  | |
Set absolute rotation yaw angle in degrees.  | |
Add angle in degrees to current angle.  | |
Add angle in degrees to current pitch angle.  | |
Add angle in degrees to current yaw angle.  | |
Sets the base angle in degrees - angle added to any rotation set with set_rotate() or rotate().  | |
Set scale for x and y directions individually.  | |
Sets transparency.  | |
Sets the color.  | |
Sets blending functions.  | |
Sets blending functions.  | |
Sets translation hotspot.  | |
Sets rotation hotspot.  | |
Sets current animation frame. 0 is first frame. It will cap to available range.  | |
Sets the delay of a specific frame. 0 is first frame.  | |
Sets the translate offset of a specific frame. 0 is first frame.  | |
Sets an attached id.  | |
Finish animation.  | |
Restart animation.  | |
Set to true if animation should loop, false otherwise.  | |
Set to true if animation should loop, false otherwise.  | |
Set to true if animation should go backward (start at end).  | |
Set what is shown when the animation is finished.  | |
Adds a frame to the animation  | 
Signals:
Detailed description:
!group=Display/Sprites! !header=display.h!There are two overviews describing the sprite system in ClanLib. The sprites overview, and the sprites resources overview.