cf_sprite_reload¶
Category: sprite
GitHub: cute_sprite.h
Reloads the sprite's pixels from disk in-place.
| Parameters | Description |
|---|---|
sprite |
The sprite to reload. |
Remarks¶
This function is designed to help support asset or image hotloading/reloading during development. Frame IDs are reused so other sprites sharing the same asset will pick up changes on their next update.