#include <GL/glut.h>
#include <math.h>
#include <stdio.h>
Go to the source code of this file.
◆ pi
◆ display()
Definition at line 10 of file openGL_tri.c.
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);
Referenced by main().
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 28 of file openGL_tri.c.
29 glutInit(&argc, argv);
30 glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
33 glutInitWindowPosition(80, 80);
34 glutInitWindowSize(1000, 800);
35 glutCreateWindow(
"A Shaded Triangle");
References display().