cf_make_custom_sprite_animation_table¶
Category: custom_sprite
GitHub: cute_custom_sprite.h
Constructs an animation table given an array of animations, or returns one from the cache if it already exists.
const CF_AnimationTable* cf_make_custom_sprite_animation_table(const char* sprite_name, const CF_Animation* const* animations, int animations_count);
| Parameters | Description |
|---|---|
sprite_name |
A unique name for the animation table. |
Return Value¶
Returns a CF_MAP(const CF_Animation*) map of animation names to animations.
Remarks¶
The table returned is a map of animation names to individual CF_Animation's. This is represents the guts of a sprite implementation. You may use this function if you wish to implement your own sprites. However, it's recommended to instead use cf_make_custom_sprite and CF_Sprite.
Related Pages¶
CF_Png
cf_custom_sprite_load_png
cf_make_custom_sprite_animation
cf_make_custom_sprite