Skip to content

cf_make_png_cache_sprite

Category: png_cache
GitHub: cute_png_cache.h


Constructs an CF_Sprite out of your own custom built animation table.

CF_Sprite cf_make_png_cache_sprite(const char* sprite_name, const CF_Animation** table /*= NULL*/);
Parameters Description
sprite_name A unique name for the sprite.
table An animation table.

Return Value

Returns a CF_Sprite, ready to use in e.g. draw_sprite.

CF_Png
cf_png_cache_load
cf_make_png_cache_animation
cf_make_png_cache_animation_table