Read the first two chapters in Angel's book and the first two chapters in the Red Book.
Do all of the following problems using your Subversion repository that comes with your lab account. Consider placing them in your repository as follows:
/ homework cmsi371 src main cpp colorwheel.cpp psychedelicsquare.cpp doc homework1.tex
Turn in a hardcopy of your solutions — generated as a PDF from your LaTeX source with all source code attached. Make sure that you do not save any tab characters in your source code, and that there is no line wrapping in your printed submission.
GL_TRIANGLE_FAN
to glBegin
, and generating
a few hundred points on a circle of radius 1. The color of each outer vertex
should vary smoothly from pure red to yellow to green to cyan to blue to
magenta and back to red. The center should be white.gluPerspective
and
gluLookAt
, as in the torus example.