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.0 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 2010, the following are the easiest places to put each of these files:
  5. If you are using 64-bit Windows Vista or Windows 7 with Visual Studio 2010 do the following:
  6. Optional: If you want to use GLUT convenience functions with a different windowing API, you need to instlall the older version of GLUT.

Install GLEW

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

Set up a freeGLUT program