Index of /courses/fall00/cps124/projects/hw1/eric
Name Last modified Size Description
Parent Directory -
Makefile 26-Sep-2000 14:32 3.6K
README 26-Sep-2000 14:32 1.1K
hw1.cpp 26-Sep-2000 14:32 7.1K
Eric McGimpsey
Homework 1
9/14/00
COMPILING INSTRUCTIONS: > make hw1
NOTES:
I wrote the menu code so that the entire menu is recreated every time the drawing
mode changes. This way, everything in the menu remains in the same order and the
menu is more usable. As it stands, the current drawing mode does not appear in its
respective submenu. This is because we were required to do so. I would normally
have preferred to leave the menu static so that it is easier to use.
I designed and tested this program on the acpub solaris machines.
For the triangles with diagonals I used the GL_TRIANGLE_FAN mode. This works
because the polygon is convex. It is easier to code and it provides a much
nicer triangulation of the sno-cone because you can clearly see each vertex.
The drawing modes that use lines but do not have options for line width (eg. line
loop, triangles) are set to width 1. Therefore if you choose line mode with width 2
and then choose polygon outline mode, the outline is drawn with line width 1. This
way, the drawing appears exactly as expected and the same each time in each mode.