Кадр анимации. More...
#include <qd_animation_frame.h>
Public Member Functions | |
| qdAnimationFrame (const qdAnimationFrame &frm) | |
| qdAnimationFrame & | operator= (const qdAnimationFrame &frm) |
| qdAnimationFrame * | clone () const |
| float | start_time () const |
| float | end_time () const |
| float | length () const |
| void | set_start_time (float tm) |
| void | set_length (float tm) |
| virtual void | qda_load (class Common::SeekableReadStream *fh, int version=100) |
| bool | load_resources () |
| void | free_resources () |
Public Member Functions inherited from QDEngine::qdSprite | |
| qdSprite (int wid, int hei, int format) | |
| qdSprite (const qdSprite &spr) | |
| qdSprite & | operator= (const qdSprite &spr) |
| const Vect2i & | size () const |
| void | set_size (const Vect2i &size) |
| int | size_x () const |
| int | size_y () const |
| int | picture_x () const |
| int | picture_y () const |
| void | set_picture_offset (const Vect2i &offs) |
| int | picture_size_x () const |
| int | picture_size_y () const |
| void | set_picture_size (const Vect2i &size) |
| int | format () const |
| const byte * | data () const |
| uint32 | data_size () const |
| void | set_file (const Common::Path &fname) |
| const Common::Path | file () const |
| bool | has_file () const |
| bool | load (const Common::Path &fname) |
| bool | load () |
| void | save (const Common::Path &fname) |
| void | free () |
| void | redraw (int x, int y, int z, int mode=0) const |
| void | redraw_rot (int x, int y, int z, float angle, int mode=0) const |
| void | redraw_rot (int x, int y, int z, float angle, const Vect2f &scale, int mode=0) const |
| void | redraw (int x, int y, int z, float scale, int mode=0) const |
| void | draw_mask (int x, int y, int z, uint32 mask_color, int mask_alpha, int mode=0) const |
| void | draw_mask (int x, int y, int z, uint32 mask_color, int mask_alpha, float scale, int mode=0) const |
| void | draw_mask_rot (int x, int y, int z, float angle, uint32 mask_color, int mask_alpha, int mode=0) const |
| void | draw_mask_rot (int x, int y, int z, float angle, uint32 mask_color, int mask_alpha, const Vect2f &scale, int mode=0) const |
| void | draw_contour (int x, int y, uint32 color, int mode=0) const |
| void | draw_contour (int x, int y, uint32 color, float scale, int mode=0) const |
| bool | hit (int x, int y) const |
| bool | hit (int x, int y, float scale) const |
| bool | put_pixel (int x, int y, byte r, byte g, byte b) |
| bool | crop () |
| bool | crop (int left, int top, int right, int bottom, bool store_offsets=true) |
| bool | undo_crop () |
| bool | get_edges_width (int &left, int &top, int &right, int &bottom) |
| Vect2i | remove_edges () |
| bool | compress () |
| bool | uncompress () |
| bool | is_compressed () const |
| bool | scale (float coeff_x, float coeff_y) |
| void | set_flag (int fl) |
| void | drop_flag (int fl) |
| bool | check_flag (int fl) const |
| void | clear_flags () |
| int | flags () const |
| bool | load_resource () |
| Загружает в память данные ресурса. | |
| bool | free_resource () |
| Выгружает из памяти данные ресурса. | |
| void | set_resource_file (const Common::Path &filename) |
| Устанавливает имя файла, в котором хранятся данные ресурса. | |
| const Common::Path | resource_file () const |
| Возвращает имя файла, в котором хранятся данные ресурса. More... | |
| grScreenRegion | screen_region (int mode=0, float scale=1.0f) const |
| Возвращает область экрана, занимаемую спрайтом. More... | |
Public Member Functions inherited from QDEngine::qdResource | |
| qdResource (const qdResource &res) | |
| qdResource & | operator= (const qdResource &res) |
| bool | is_resource_loaded () const |
| Возвращает true, если данные ресурса загружены в память. | |
Additional Inherited Members | |
Public Types inherited from QDEngine::qdSprite | |
| enum | { ALPHA_FLAG = 0x01 } |
Public Types inherited from QDEngine::qdResource | |
| enum | file_format_t { RES_ANIMATION, RES_SPRITE, RES_SOUND, RES_UNKNOWN } |
| Форматы файлов. More... | |
Static Public Member Functions inherited from QDEngine::qdResource | |
| static file_format_t | file_format (const Common::Path &file_name) |
Protected Member Functions inherited from QDEngine::qdResource | |
| void | toggle_resource_status (bool st=true) |
| Устанавливает или скидывает флаг, показывающий что данные ресурса загружены в память. | |
Кадр анимации.