All pastes #201519 Raw Edit

Mine

public text v1 · immutable
#201519 ·published 2006-10-13 21:36 UTC
rendered paste body
void display(void)
{
	glClear(GL_COLOR_BUFFER_BIT);
	
  //std::vector<Point> 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();
}