Skip to content

cf_clear_canvas

Category: graphics
GitHub: cute_graphics.h


Clears the color and depth-stencil targets of the given canvas.

void cf_clear_canvas(CF_Canvas canvas);
Parameters Description
canvas The canvas to clear.

Remarks

This clears the canvas to its configured clear color and clears depth to 1.0 (furthest depth). If the canvas has no depth-stencil target, only the color target will be cleared.

cf_make_canvas
cf_clear_color
cf_clear_depth_stencil