CS 5610/6610 - Spring 2017 - Interactive Computer Graphics
Project 1 - Hello World
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
- Use C/C++.
- Use GLUT, FreeGLUT, or GLFW for creating an OpenGL window.
- The window size must be explicitly specified.
- Set the background color of the window using OpenGL calls.
- The "Esc" key must close the window.
- All OpenGL-related headers must be placed under the GL directory of an include path and included using forward slash.
include <GL/freeglut.h>;
Additional Requirements for CS 6610 Students
- Automatically animate the background color.
Notes
Pay attention to GLUT functions like the following:
glutInit
glutInitDisplayMode
glutInitWindowSize
glutCreateWindow
glutMainLoop
glutLeaveMainLoop
glutPostRedisplay
glutSwapBuffers
glutDisplayFunc
glutKeyboardFunc
glutIdleFunc
Mac OS X users can follow this tutorial for setting up FreeGLUT 2.8.0.
_