void display(void) { glClear(GL_COLOR_BUFFER_BIT); //std::vector points; //points.push_back(new Point(1, 1)); //points.push_back(new Point(1, 2)); Point* points[2]; points[0] = new Point(0.0, 0.0); points[1] = new Point(2.0, 3.0); glBegin(GL_LINES); (*points[0]).plot(); (*points[1]).plot(); glEnd(); delete points[0]; delete points[1]; glFlush(); }