Setting Up Compilers
Windows Using MS Visual C++
Installing GLUT
1.
Most of the following
files (ie. OpenGL and GLU) will already be present if you have installed MS
Visual C++ v5.0 or later. The following GLUT files will need to be copied into
the specified directories.
2.
To install:
¤
libraries (place in the lib\ subdirectory of Visual C++)
¤
include files (place in
the include\GL\ subdirectory of
Visual C++)
¤
gl.h
¤
glu.h
¤
glut.h
¤
dynamically-linked
libraries (place in the \Windows\System subdirectory
Compiling
OpenGL/GLUT Programs
1.
Create a new project:
o
choose File | New from the File Menu
o
select the Projects tab
o
choose Win32 Console
Application
o
fill in your Project
name
2.
Designate library files
for the linker to use:
o
choose Project |
Settings from the File Menu
o
under Oject/library
modules: enter "opengl32.lib glu32.lib
glut32.lib"
3.
Add/Create files to the
project:
o
choose Project | Add
to Project | Files from the File menu
o
add the required program
files