CPSC 414 Assignment 0
This is an exercise to get you started on OpenGL.
It will not be graded. If you run into problems,
talk to your TA.
Experiment more on your own if you like.
The glut library comes with a variety of geometric
shapes and, of course, a teapot.
- Download and untar a0.tar. There are only two files:
openGLDemo.cpp, makefile
- build the executable using make, run it
- make the triangle white at the top and green at the bottom
- add a second triangle at right angles to the first to
get a crude approximation of a Christmas tree
- make the triangles rotate around the X axis instead of the Y axis
- hitting 'q' should quit the program
- hitting space should toggle the animation on and off
- place a small glut teapot centered at the top triangle vertex and
coloured the same as that vertex
Last modified: Thu Jan 08 01:26:34 Pacific Standard Time 2004