GLUT is a short form for OpenGL Utility Library. It's function is to
interface OpenGL with the hardware. It makes the programmer job
easier. GLUT is portable and can be use in different platform like
Windows, UNIX, Linux and Macintosh. Here is the way how to use it:
1. Download the file named glut-3.7.6-bin.zip
from Nate
Robbins website.
2. Double click the file and you can
see this:

3. Extract all the files into a
temporary folder. After it is done, open the folder.
4. Copy file named glut32.dll into
"C:\WINDOWS\SYSTEM".
5. Copy file named glut.h into
"C:\Program Files\Microsoft Visual Studio\VC98\Include\GL".
6. Copy file named glut32.lib into "C:\Program Files\Microsoft
Visual Studio\VC98\Lib".
7. Step 4 and 5 if only applicable if
you are using Microsoft Visual C++ to do the programming.
8. Now you are
ready to do programming with OpenGL.
Anyway, the use of the GLUT is
recommended for the beginner or for simple program. For the
expert it is advisable to use Windows programming for the interfacing.
The Windows interfacing will be explain in other chapters.
|