12 glClear(GL_COLOR_BUFFER_BIT);
17 glVertex3f(-0.6, -0.75, 0.5);
19 glVertex3f(0.6, -0.75, 0);
21 glVertex3f(0, 0.75, 0);
28 int main(
int argc,
char **argv) {
29 glutInit(&argc, argv);
30 glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
33 glutInitWindowPosition(80, 80);
34 glutInitWindowSize(1000, 800);
35 glutCreateWindow(
"A Shaded Triangle");
int main(int argc, char **argv)