•Mechanism
to save and restore state
–glPushMatrix();
–glPopMatrix();
•Apply
to current matrix
•Can
also save current attribute values
–Examples:
color, lighting
–glPushAttrib(GLbitfield
mask);
–glPopAttrib();
–Mask
determines which attributes are saved