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)); glBegin(GL_LINES); points[0].plot(); glEnd(); glFlush(); //Flush Buffers }