openglguide.zip

For those interested, the above link contains the source code (no binaries) for 10 demos I gave to students working at the VEL while I was working there. The demos are:

(1)Window Creation
(2)Basic Input
(3)Basic Geometry
(4)Color
(5)Matrices and Transformations
(6)Texture Mapping
(7)Glut Shapes and Quadrics
(8)Lighting
(9)Terrain
(10)Particles

All the demos use glut and all should be cross-platform (this is untested). They’re all pretty basic, illustrating simple concepts. I tried to comment as much as I could and make everything straightforward, so hopefully even a beginner will be able to follow them.

glEnable(GL_DEPTH_TEST);