I have a std::list of Points (that simply store an x, y). Each one of these points represents a polygon, which I later draw.
class Point {
public:
int x, y;
Point(int x1, int y1)
{
x = x1;
y = y1;
}
};
std::list <Point> currentPolygon;
I would like to have a list of these polygons (lists themselves).
Is this possible? How do I have a std::list of a list of Points (so I can store more than one polygon).