Example: Object Hierarchy
Suppose the current modelview matrix is M:WC->VC (ie, based on VRP, VPN,VUV).
GObject *object; //pointer to graphics object
- glMatrixModel(GL_MODELVIEW);
- /*push and duplicate current matrix*/
- glPushMatrix();
- /*premultiply M by CTM*/
- glMultMatrix(object->CTM);
- /*now draw all faces in object*/
- glPopMatrix(); //restore original M