Skip to content

cf_draw_list

Category: draw
GitHub: cute_draw.h


Replays a recorded draw list under the current draw transform.

void cf_draw_list(CF_DrawList list);

Remarks

May be called any number of times per frame (each replay is independent), and lists may replay inside another list's recording to compose them. Do not destroy a list before the frame that replays it finishes rendering. Known limitation: a 3d mesh replay recorded INSIDE another list keeps its own baked instance data but folds the recording-time transform into the captured camera rather than the instances, so the outer list's bake grouping sees the inner meshes in their original local space -- compose nested 3d lists with the same transform they were recorded under.

CF_DrawList
cf_make_draw_list
cf_draw_list_begin
cf_draw_list_end
cf_destroy_draw_list