cf_make_sprite¶
Category: sprite
GitHub: cute_sprite.h
Loads a sprite from an aseprite file.
Parameters | Description |
---|---|
aseprite_path | Virtual path to a .ase file. |
Return Value¶
Returns a CF_Sprite that can be drawn with cf_sprite_draw
.
Remarks¶
This function caches the sprite internally. Subsequent calls to load the same sprite will be very fast; you can use this function directly to fetch sprites that were already loaded. If you want to load sprites with your own custom animation data, instead of using the .ase/.aseprite format, you can try out cf_png_cache_load for a more low-level option. See Virtual File System.
Related Pages¶
CF_Sprite
cf_make_easy_sprite_from_png
cf_make_easy_sprite_from_pixels
cf_easy_sprite_update_pixels
cf_make_sprite_from_memory