|
Sprite Animation Manager 0.1.0
Sprite animation manager using the citro2d library.
|
Functions | |
| void | initialize_object (object_2d_info_t *object, C2D_Sprite *sprites, const char *filename, const sprite_pivot_t pivot, const sprite_position_t position, const float rotation, uint64_t animation_refresh_time) |
| Initialize 2D object. More... | |
| void | deinitialize_object (object_2d_info_t *object) |
| Deinitialize 2D object. More... | |
| void | draw_sprite_animation (object_2d_info_t *object) |
| Draw sprite animation from the 2D object. More... | |
| void deinitialize_object | ( | object_2d_info_t * | object | ) |
Deinitialize 2D object.
| [in] | object | 2D object |
| void draw_sprite_animation | ( | object_2d_info_t * | object | ) |
Draw sprite animation from the 2D object.
| [in] | object | 2D object |
| void initialize_object | ( | object_2d_info_t * | object, |
| C2D_Sprite * | sprites, | ||
| const char * | filename, | ||
| const sprite_pivot_t | pivot, | ||
| const sprite_position_t | position, | ||
| const float | rotation, | ||
| uint64_t | animation_refresh_time | ||
| ) |
Initialize 2D object.
| [in] | object | 2D object |
| [in] | sprites | sprite array to contain from the spritesheet |
| [in] | filname | file path which contains spritesheet information |
| [in] | pivot | Initial pivot point |
| [in] | position | Initial position |
| [in] | rotation | Initial rotation |
| [in] | animation_refresh_time | Sprite animation refresh time [Unit: ms] |