01/30/2003
15-462 Graphics I
21
Assessment of Interleaving
•
Compact
•
Correct “by construction”
•
Efficient
•
Inefficient alternative:
•
•
•
•
•
Count number of transformations
glPushMatrix();
glRotatef(theta, ...);
drawBase();
glPopMatrix();
glPushMatrix();
glRotatef(theta, ...);
glTranslatef(...);
glRotatef(phi, ...);
drawLowerArm();
glPopMatrix();
...etc...