GLUT Gears

This is a conversion/rewrite of the old, classic Gears demo to modern OpenGL, the only known modern version of the classic demo!

The conversion to modern OpenGL is fairly extensive. First of all, there is no immediate mode, so all immediate mode calls were converted to calls that accumulate data into arrays. Second, there are no quads, so quads need to be split to triangles, or multiple triangle strips. I chose to split into triangles. Finally, shaders must be used for transformations and shading.

This demo was the starting point for my Utilities for Geometry Generation, now on the packages page.

Updated 2017. Updated 2022.


Old, obsolete, should be replaced/remade: (Version working under MS Visual Studio, with project file. This is an older version than above, using the older VectorUtils2.)

This page is maintained by Ingemar Ragnemalm.