GLUT for Windows

GLUT comes in two flavours for Windows. There's an old and unmaintained version called GLUT and an open source alternative called freeglut. The textbook examples rely on freeglut, so I suggest you install that one. You may find code that relies on GLUT that doesn't work with freeglut. The two libraries can coexist on one PC. Follow the Optional installation instructions to install it.

Installing freeglut

  1. Get the freeglut 2.8.1 MSVC zip file from http://www.transmissionzero.co.uk/software/freeglut-devel/
  2. Extract the files to your PC.
  3. There are three types of files of importance: lib (in the lib folder), header (in the include\GL folder), and dll (in the bin folder).
  4. If you are using 32-bit Windows with Visual Studio 2013, the following are the easiest places to put each of these files:
  5. If you are using 64-bit Windows 7 or Windows 8 with Visual Studio 2013 do the following:

Install GLEW

The textbook samples rely on GLEW to get extra OpenGL functionality. You should install it now.

Set up a freeglut program