Hierarchical Animation

Does anyone have the code for a Hierarchical Animation that has at least two branches parented by a common node.
I be grateful of any help.Thanks

Use glPushMatrix/glPopMatrix, here is a little example:

// Object
glPushMatrix()
glTranslate // location of main body
glRotate // Rotation of main body
Draw_base()

glPushMatrix() // Create subsection_1
glTranslate // location relative to main boby
glRotate // Rotation relative to main.
Draw_sub_1();

glPushMatrix() // Create subsection_1_2
glTranslate // location relative to subsection_1
glRotate // Rotation relative to subsection_1
Draw_sub_1_2();
glPopMatrix(); // End subsection_1_2
glPopMatrix(); // End subsection_1
glPopMatrix(); // End object

Originally posted by hoganh:
Does anyone have the code for a Hierarchical Animation that has at least two branches parented by a common node.
I be grateful of any help.Thanks