glClearColor(1,0,1,0);
glClear(GL_COLOR_BUFFER_BIT);
glColor4f(1,1,0,0);
glutSolidTeapot(0.5);
glBegin(GL_POLYGON);
glColor3f(1,0,0);
glVertex2f(-1,-1);
glColor3f(0,1,0);
glVertex2f(1,1);
glColor3f(0,0,1);
glVertex2f(2,0);
glEnd();
沒有留言:
張貼留言