wxCanvas::DrawPolygon

void DrawPolygon(int n, wxPoint points[], float xoffset = 0, float yoffset = 0)

void DrawPolygon(wxList *points, float xoffset = 0, float yoffset = 0)

Draw a filled polygon using an array of points of size n, or list of pointers to points, adding the optional offset coordinate. The current pen is used for drawing the outline, and the current brush for filling the shape. Using a transparent brush suppresses filling. The programmer is responsible for deleting the list of points.

Note that wxWindows automatically closes the first and last points.