Skip to content

cf_png_cache_get_animation

Category: png_cache
GitHub: cute_png_cache.h


Looks up an animation within the png cache by name.

const CF_Animation* cf_png_cache_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_png_cache_sprite and CF_Sprite.

CF_Png
cf_png_cache_load
cf_make_png_cache_animation
cf_make_png_cache_animation_table
cf_make_png_cache_sprite