Copy the Qt OpenGL example program (introduced in the labs).
You can find it at:
/home/jungle/pj/www/453/box/2D
Copy the *.cpp (3 files) and the *.h (2 files) and the Makefile into your own
box directory.
Make the files.
Play with OpenGL.
(Hint: Before the glBegin(GL_POLYGON); line
put a glTranslatef(x, y, z); and glScalef(x, y, z);
Note: x, y, and z are all floats; remember if you
make them too large the object may disappear out
of view.)



glRotatef(20, 0.0, 1.0, 0.0); rotates 20
degrees on the y-axis
glRotatef(20, 0.0, 0.0, 1.0); rotates 20
degrees on the z-axis
Remember to check the documentation.
Useful References
OpenGL Programming Guide
(The Red Book).
OpenGL Reference Manual (Blue Book)
The OpenGL Website - tutorials
Contact me
email: pj@cpsc.ucalgary.ca
Tel: (403) 220 7041.