Skip to content

cf_draw_polyline

Category: draw
GitHub: cute_draw.h


Draws a chain of connected line segments.

void cf_draw_polyline(const CF_V2* points, int count, float thickness, bool loop);
Parameters Description
points An array of line segment endpoints.
count The number of points in the polyline.
thickness The thickness of the line to draw.
loop True to connect the first and last point to form a loop. False otherwise.
bevel_count The number of edges used to smooth corners.

cf_draw_line
cf_draw_polygon_fill
cf_draw_bezier_line
cf_draw_bezier_line2
cf_draw_arrow