#Include #Include #Include #Include Void
#Include #Include #Include #Include Void
#include
#include
#include
void myDisplay(void)
{
glClear(GL_COLOR_BUFFER_BIT); // clear the screen
glColor3f(0.0,1.0,0.0);
glRecti(200,100,450,300);
glColor3f(1.0,0.0,0.0);
glRecti(300,100,350,170);
glColor3f(0.0,0.0,1.0);
glBegin(GL_TRIANGLES);
glVertex2f(200,300);
glVertex2f(450,300);
glVertex2f(325,400);
glEnd();
glFlush();
}