Functions | |
| cucul_sprite_t * | cucul_load_sprite (char const *) |
| Allocate a sprite loaded from a file. | |
| int | cucul_get_sprite_frames (cucul_sprite_t const *) |
| Return the number of frames in a sprite. | |
| int | cucul_get_sprite_width (cucul_sprite_t const *, int) |
| Return the width of a sprite. | |
| int | cucul_get_sprite_height (cucul_sprite_t const *, int) |
| Return the height of a sprite. | |
| int | cucul_get_sprite_dx (cucul_sprite_t const *, int) |
| Return the X coordinate of a sprite's handle. | |
| int | cucul_get_sprite_dy (cucul_sprite_t const *, int) |
| Return the Y coordinate of a sprite's handle. | |
| void | cucul_draw_sprite (cucul_canvas_t *, int, int, cucul_sprite_t const *, int) |
| Draw a sprite's specific frame at the given coordinates. If the frame does not exist, nothing is displayed. | |
| void | cucul_free_sprite (cucul_sprite_t *) |
| Free the memory associated with a sprite. | |
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||||||||||
|
|
|
|
|