01/23/2003
15-462 Graphics I
34
Manipulating the Current Matrix
•Load or postmultiply
•
•
•
•Library functions to compute matrices
•
•
•
•Recall: last transformation is applied first!
glLoadIdentity();
glLoadMatrixf(*m);
glMultMatrixf(*m);
glTranslatef(dx, dy, dz);
glRotatef(angle, vx, vy, vz);
glScalef(sx, sy, sz);