CSC418/2504F Winter 2002 Assignment 1 Question 5
Files:
The program, as provided, allows no interaction. You have to modify
it to perform the operations required in the assignment.
Compiling and Linking on CDF
- Copy the files to a directory on you cdf account.
- Type
make
to compile and link.
- Type
poly
to run the program.
Compiling and Linking with Microsoft Visual C++
- Copy the files to a directory on your PC.
- Double-click the
poly.dsw
workspace file.
- You may have to add the following libraries to your project:
opengl32.lib glut32.lib glu32.lib glui32.lib
See below for info on installing these libraries.
- Build "poly.exe".
- If that doesn't work, then the
.dsw
and
.dsp
files don't work for you. Follow the
detailed checklist to make
sure all the files are in place.
- NOTE: You will need to install GL, GLUT and GLUI. See the next
section.
Installing GL on your machine
If you have Visual C++, you should have the OpenGL library already in
place. Look for the following file:
opengl32.dll
in folder
C:\windows\system32
or C:\winnt\system32
.
If it's not there, you can get it from www.opengl.org, at:
The page also has the OpenGL library for MacOS and Linux.
Installing GLUT on your machine
opengl.org has general info on GLUT:
To get the libraries for MS VC++, look here:
You will have to copy the glut32.lib
file to VC's
lib
folder, and glut.h
to VC's
GL\include
folder.
Installing GLUI on your machine
OpenGL has no user-interface widgets built in. There are several
GUI add-ons to OpenGL. The assignment uses the OLD (version 1.01) of
the glui
library:
As for GLUT, you will have to copy glui32.lib
to VC's
lib
folder, and glui.h
to VC's
include\GL
folder.
Karan Singh,
Dept of Computer Science,
University of Toronto