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);
30 glClear(GL_COLOR_BUFFER_BIT);
37 for (i = 0; i < (2 *
pi); i += 0.001) {
49 int main(
int argc,
char **argv) {
50 glutInit(&argc, argv);
51 glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
54 glutInitWindowSize(1366, 768);
55 glutInitWindowPosition(0, 0);
58 glutCreateWindow(
"Circle Drawing");
int main(int argc, char **argv)