Functions | |
| caca_sprite * | caca_load_sprite (char const *) |
| Allocate a sprite loaded from a file. | |
| int | caca_get_sprite_frames (struct caca_sprite const *) |
| Return the number of frames in a sprite. | |
| int | caca_get_sprite_width (struct caca_sprite const *, int) |
| Return the width of a sprite. | |
| int | caca_get_sprite_height (struct caca_sprite const *, int) |
| Return the height of a sprite. | |
| int | caca_get_sprite_dx (struct caca_sprite const *, int) |
| Return the X coordinate of a sprite's handle. | |
| int | caca_get_sprite_dy (struct caca_sprite const *, int) |
| Return the Y coordinate of a sprite's handle. | |
| void | caca_draw_sprite (int, int, struct caca_sprite const *, int) |
| Draw a sprite's specific frame at the given coordinates. If the frame does not exist, nothing is displayed. | |
| void | caca_free_sprite (struct caca_sprite *) |
| Free the memory associated with a sprite. | |
| void caca_draw_sprite | ( | int | x, | |
| int | y, | |||
| struct caca_sprite const * | sprite, | |||
| int | f | |||
| ) |
| x | The X coordinate. | |
| y | The Y coordinate. | |
| sprite | The sprite. | |
| f | The frame index. |
| void caca_free_sprite | ( | struct caca_sprite * | sprite | ) |
| sprite | The sprite to be freed. |
| int caca_get_sprite_dx | ( | struct caca_sprite const * | sprite, | |
| int | f | |||
| ) |
| sprite | The sprite. | |
| f | The frame index. |
| int caca_get_sprite_dy | ( | struct caca_sprite const * | sprite, | |
| int | f | |||
| ) |
| sprite | The sprite. | |
| f | The frame index. |
| int caca_get_sprite_frames | ( | struct caca_sprite const * | sprite | ) |
| sprite | The sprite. |
| int caca_get_sprite_height | ( | struct caca_sprite const * | sprite, | |
| int | f | |||
| ) |
| sprite | The sprite. | |
| f | The frame index. |
| int caca_get_sprite_width | ( | struct caca_sprite const * | sprite, | |
| int | f | |||
| ) |
| sprite | The sprite. | |
| f | The frame index. |
| struct caca_sprite* caca_load_sprite | ( | char const * | file | ) |
| file | The filename. |