02/05/2002
15-462 Graphics I
20
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...