A wxPolygonShape's shape is defined by a number of points passed to the object's constructor. It can be used to create new shapes such as diamonds and triangles.
Constructor. Call wxPolygonShape::Create to specify the polygon's vertices.
void Create(wxList* points)
Takes a list of wxRealPoints; each point is an offset from the centre. The polygon's destructor will delete these points, so do not delete them yourself.
void AddPolygonPoint(int pos = 0)
Add a control point after the given point.
Recalculates the centre of the polygon.
void DeletePolygonPoint(int pos = 0)
Deletes a control point.
wxList * GetPoints()
Returns a pointer to the internal list of polygon vertices (wxRealPoints).
If we've changed the shape, must make the original points match the working points with this function.