Sprite class. More...
Derived from: | None |
Derived by: | None |
Group: | 2D (Display) |
#include <ClanLib/display.h>
Class Members:
Enums: | |
| |
Constructs a null instance. |
| |
Returns true if this object is invalid. | |
Throw an exception if this object is invalid. | |
Returns current 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 true if the sprite uses a linear filter for scaling up and down, false if a nearest-point filter is used. | |
Returns translation hot-spot. | |
Returns rotation hot-spot. | |
Returns current frame in animation. 0 is first frame. | |
Returns number of frames in animation. | |
Returns the delay of a 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'. | |
Return the size of the current frame, shortcut for 'get_frame_size( get_current_frame() )'. | |
Returns the attached id (if exists). | |
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. |
| |
Equality operator. | |
Inequality operator. | |
Less than operator. |
| |
Sets the image data from another sprite, sharing animation state. | |
Copies all information from another sprite into this, not sharing animation state. | |
Draw sprite on graphic context. | |
Call this function to update the animation. | |
Set absolute rotation angle. | |
Set absolute rotation pitch angle. | |
Set absolute rotation yaw angle. | |
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. | |
Set to true if a linear filter should be used for scaling up and down, false if a nearest-point filter should be used. | |
Sets translation hotspot. | |
Sets rotation hotspot. | |
Sets current animation frame. 0 is first frame. | |
Sets the delay for all frames. | |
Sets the delay of a specific 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. |
| |
Sig animation finished. |