void Display() { glClear(GL_COLOR_BUFFER_BIT); graphWin.drawAxes(); mainFunction(); glFlush(); }
void mainFunction( void ) { graphWin.drawAxes(); RectangleV1 rec(-2,2,4,2); rec.draw(); CircleV1 cercle(0,0,1,300); cercle.draw(); TriangleV1 triangle(2.0,2.0,1.0,3.0,2.0,1.0); triangle.draw(); SquareV1 square(2.0,2.0,0.5); square.draw(); }