How to use composite modeling transformations to draw translated and rotated hierarchical models

This program shows how to use composite modeling transformations to draw translated and rotated hierarchical models. Interaction: pressing the s and e keys (shoulder and elbow) alters the rotation of the robot arm.

The example is ported from C examples in the OpenGL Programming Guide (known as the "red book").