#include <image.h>
Inheritance diagram for animation_c:

Public Methods | |
| void | set_framecount (ushort f) |
| set frame count | |
| image_c * | set_frame (ushort f) |
| set frame | |
| bool | load (char *filename) |
| load frames | |
| void | set_fps (ushort f) |
| set frame rate | |
| void | play (sshort type) |
| play animation | |
| void | stop () |
| stop animation | |
| const char * | get_pixels () |
| get pixel buffer | |
Protected Attributes | |
| ushort | framecount |
| total frame count | |
| ushort | fps |
| frames per second | |
| sshort | frame |
| current frame | |
| ulong | nextframetime |
| time for next frame switch | |
| image_c * | img |
| the img with frames | |
| sshort | playdir |
| play direction | |
| sshort | playtype |
| type of play | |
Definition at line 344 of file image.h.
|
|
Returns the pixel buffer for current frame. Definition at line 847 of file x_image.cpp. References image_c::get_pixels(). |
|
|
Loads an image containing the frames from a file and stores it in img. Return true if loading was successful, false otherwise.
Definition at line 773 of file x_image.cpp. |
|
|
Starts playing the animation using the given way:
Definition at line 830 of file x_image.cpp. |
|
|
If you want to play an animation you have to set the frame rate first.
Definition at line 806 of file x_image.cpp. |
|
|
Sets the current frame by blitting it from the loaded image and then returns itself (just for convenience).
Definition at line 817 of file x_image.cpp. Referenced by uiwindow_c::paint(), uislider_c::paint(), and uicheckbutton_c::paint(). |
|
|
Sets the number of frames that can be found in the loaded image. The image will be splitted in that way the frames are arranged horizontally in the unsplitted image.
Definition at line 791 of file x_image.cpp. References image_c::create(). |
|
|
Stops a playing animation |
1.2.18