Skip to content

cf_draw_prefetch

Category: draw
GitHub: cute_draw.h


Prefetches a sprite.

void cf_draw_prefetch(const CF_Sprite* sprite);
Parameters Description
sprite The sprite.

Remarks

This function ensures the sprite is fully loaded into memory without actually rendering anything. This is a good way to avoid disk io at inconvenient times.

cf_draw_sprite
cf_draw_quad
draw_look_at
cf_draw_to
cf_app_draw_onto_screen