cf_sprite_reload¶
Category: sprite
GitHub: cute_sprite.h
Reloads the sprite's pixels from disk.
Parameters | Description |
---|---|
sprite | The sprite to reload. |
Return Value¶
The reloaded sprite.
Remarks¶
This function is designed to help support asset or image hotloading/reloading during development. This function is not designed to be called once you ship your game. All old instances of the sprite are now invalid and should be reset to this return value.