Skip to content

cf_custom_sprite_get_animation

Category: custom_sprite
GitHub: cute_custom_sprite.h


Looks up an animation within the custom sprite cache by name.

const CF_Animation* cf_custom_sprite_get_animation(const char* name);
Parameters Description
name A unique name for the animation.

Return Value

Returns a CF_Animation.

Remarks

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.

CF_Png
cf_custom_sprite_load_png
cf_make_custom_sprite_animation
cf_make_custom_sprite_animation_table
cf_make_custom_sprite