drawpoly
This function is used to draw a polygon without filling.
void drawpoly(
int numpoints,
const int *polypoints
);
Parameters
numpoints
The number of polygon vertices.
polypoints
The coordinates of each point, the number of array elements is numpoints * 2.
The function automatically connects the polygon start and end.
Return Value
None
Remarks
This function is obsolete and is declared only in graphics.h.
It is recommended that use polygon instead of this function.
Examples
The following snippet draws a closed triangle without filling:
int points[] = {50, 200, 200, 200, 200, 50};
drawpoly(3, points);