PDA

View Full Version : Transform



Batabek
10-28-2007, 04:36 PM
I've checked the OpenGL FAQ. If we premultiply the current matrix by a transformation matrix it will transform the object w.r.t the world axis not local space. But gl transformation calls only postmultiply. How can I make a premultiplication ?

Zengar
10-28-2007, 11:24 PM
Pseudocode:

glLoadMatrix(MyMatrix * glGet(GL_MODELVIEW_MATRIX))