This first project is about setting up the environment for using OpenGL. We will create an OpenGL window and color it using basic OpenGL functions.
Requirements
#include <GL/freeglut.h> #include <GLFW/glfw3.h>
Additional Requirements for CS 6610 Students
Notes
If you are using GLUT or FreeGLUT, pay attention to GLUT functions like the following:
glutInit
glutInitDisplayMode
glutInitWindowSize
glutCreateWindow
glutMainLoop
glutLeaveMainLoop
glutPostRedisplay
glutSwapBuffers
glutDisplayFunc
glutKeyboardFunc
glutIdleFunc
If you are on Mac OS, you should consider using GLFW, as FreeGLUT requires X11, which has not been included since 10.7. An alternative is installing XQuartz. However, as of 12/31/2025, there have been issues for Mac OS Tahoe