Skip to content

CF_DrawPath

Category: draw
GitHub: cute_draw.h


A baked vector path of Bezier curves, for filled or stroked rendering.

Remarks

Built once with cf_draw_path_begin + cf_draw_path_end, then drawn any number of times with cf_draw_path_fill or cf_draw_path. Paths render per-pixel from their curves (the same machinery as curve text): resolution-independent under any zoom or rotation, exact antialiasing, and true curved strokes. Multiple contours are supported; holes follow the nonzero winding rule (wind inner contours opposite the outer).

cf_destroy_path
cf_draw_path_begin
cf_draw_path_end
cf_draw_path_fill
cf_draw_path