Links for on-line documents:
1. OpenGL on-line manual (a *.tar.gz file of many *.html files)
2. GLUT on-line manual ("http://www.opengl.org/resources/libraries/glut/spec3/spec3.html")
Links for downloading the OpenGL related packages (for Windows and Linux you need
both 1. and 2. below; for MacOS you only need 1. below
(see Compilation and Installation Instructions for OpenGL and
"OpenGL Compilation on Mac OS or Linux using CMake" below):
1. GLUT 3.7 ("glut-3.7.6-bin.zip")
2. GLEW 1.5.1 ("glew-1.5.1-win32.zip")
Links for OpenGL Information:
TA: Zebin Xu (Email: email@example.com. Office Hours: Tuesdays 3-5pm, in the lab 10.038, 10th floor of 2 MTC (there are two rooms labeled 10.038; we use the one whose door has no glass. If the lab 10.038 is too crowded, we may move to the dining area outside 10.038.)).
Syllabus: (.pdf file)
Compilation and Installation Instructions for OpenGL (on Windows)
OpenGL Compilation on Mac OS or Linux (written by TA Zebin Xu):
"OpenGL Compilation on Mac OS or Linux using CMake" (Instructions)
Handout: example.cpp ("Example.tar.gz") ---
Example Program for Basic OpenGL Program Structure
After you un-zip and un-tar the file, there are two files: "example.cpp" and "CMakeLists.txt". On Windows you only need "example.cpp". On Mac OS or Linux you need both --- put them in the same directory; see "OpenGL Compilation on Mac OS or Linux using CMake" Sections 1-4 for more details.
Sample Program for Shader-Based OpenGL, for OpenGL version 3.1 and
After you un-zip and un-tar the file, there are
1. source files, including C/C++ (*.cpp) and header (*.h) files (to be used for all platforms), and a file "CMakeLists.txt" (to be used for Mac OS or Linux), and
2. two shader files (*.glsl), to be used for all platforms.
To compile and run, for Windows put all files in the same directory/folder. (For Mac OS and Linux, see "OpenGL Compilation on Mac OS or Linux using CMake" Section 5 Notes (Reading shader files) for more details.)
Last update: 3/1/18.