cf_draw_polygon_fill_simple¶
Category: draw
GitHub: cute_draw.h
Draws a filled polygon.
Parameters | Description |
---|---|
points | An array of points to define the polygon surface. |
count | The number of points in the polygon. |
Remarks¶
Unlike cf_draw_polygon_fill, this function can render a higher number of vertices than 8. However, the polygon must be a simple polygon, meaning no self-intersections are allowed, no duplicate or overlapping vertices are allowed, and other features like chubbiness or antialias can not be applied. This function simply converts your polygon and renders a series of triangles under the hood. Please be sure to submit your vertices in CCW order.
Related Pages¶
cf_draw_line
cf_draw_polyline
cf_draw_bezier_line
cf_draw_bezier_line2
cf_draw_arrow
cf_draw_polygon_fill