cf_make_easy_sprite_from_png¶
Category: sprite
GitHub: cute_sprite.h
Loads a single-frame sprite from a single png file.
Parameters | Description |
---|---|
png_path | Virtual path to the .png file. |
Return Value¶
Returns a CF_Sprite that can be drawn with cf_sprite_draw
. The sprite is not animated,
as it's only a single-frame made from a png file.
Remarks¶
The preferred way to make a sprite is cf_make_sprite, but this function provides a very simple way to get started by merely loading a single .png image, or for games that don't require animations. See Virtual File System.
Related Pages¶
CF_Sprite
cf_easy_sprite_unload
cf_make_easy_sprite_from_pixels
cf_easy_sprite_update_pixels