Notes for Homework 6
An example executable.
Note the trackball (using the code provided below) will work much better than in the example.
For
Windows
(Assumes GLUT is already installed.)
For
Linux
The
new, improved Linux executable
.
Confused as to what should be in your
display callback
? Look
here
to see how I organize mine.
Material properties
as snippets of C code.
OBJ models of
Al Capone
, the
Stanford Bunny
, a
Cow
, a simplified version of the
Stanford Dragon
, and the
Utah Teapot
.
Download the
glm code
either as a
[tar/gz file]
or as a
[zip file]
.
Download the
trackball code
as a:
Simple C++ class. Available as a
[tar/gz file]
or as a
[zip file]
.
Couple C routines. Available as a
[tar/gz file]
or as a
[zip file]
.
For information on how to setup a GLUT menu, see the
GLUT specification
. In particular, you should read about the functions:
glutAttachMenu()
(to attach your menu to a particular mouse button)
glutCreateMenu()
(to create a menu or sub-menu and specify a callback for it)
glutAddMenuEntry()
(to add a selectable entry to a menu)
glutAddSubMenu()
(to add an entry to a menu that opens a sub-menu)
Also, you can examine a
snippet of code
I used to create the menu in my example.
Last Modified:
Sunday, September 25, 2005
Chris Wyman
(cwyman@cs.uiowa.edu)