#include <GL/glut.h>
#include <math.h>
#include <stdio.h>
Go to the source code of this file.
◆ pi
◆ display()
Definition at line 29 of file openGL_example00.c.
30 glClear(GL_COLOR_BUFFER_BIT);
37 for (i = 0; i < (2 *
pi); i += 0.001) {
References pi.
Referenced by main().
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 49 of file openGL_example00.c.
50 glutInit(&argc, argv);
51 glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
54 glutInitWindowSize(1366, 768);
55 glutInitWindowPosition(0, 0);
58 glutCreateWindow(
"Circle Drawing");
References display(), and myInit().
◆ myInit()
Definition at line 11 of file openGL_example00.c.
14 glClearColor(0.0, 0.0, 0.0, 1.0);
18 glColor3f(0.0, 1.0, 0.0);
22 glMatrixMode(GL_PROJECTION);
26 gluOrtho2D(-780, 780, -420, 420);
Referenced by main().