C481 B581 Computer Graphics
Dana Vrajitoru

C481 Windows OpenGL GLUT Instructions

Download the freeglut library for MSVC from here:
http://www.transmissionzero.co.uk/software/freeglut-devel/
Move the folder inside the zip file to a location you can remember.

Create an empty C++ project. Add the .cc files to the Source Files folder and the .h files to the Header Files folder.

In the project properties, go to C/C++ properties, General, Additional Include Directories, and add the path to the folder include inside the freeglut folder.

In the project properties, go to Linker properties, General, Additional Library Directories, and add the path to the folder lib inside the freeglut folder.

After you make these changes, click Apply.

After successful compilation, you need the library freeglut.dll to run the application. It can be found in the freeglut/bin folder. You can either copy it to the Debug folder of each application you run, or to the folder C:\Windows/System32/ and then run the command
regsvr32 freeglut.dll

Note that even if you have a 64 bit computer, the general purpose dll might work better than the one in the 64 folder, so try them both.