PDA

View Full Version : Getting the current Matrix?



GameMaker
10-22-2001, 08:06 PM
I can't seem to find out how to get the current matrix from opengl. I want to multiply a point by this matrix. Does anyone know how I can do this?

Spiral Man
10-22-2001, 08:17 PM
GLfloat matrix[16];

glGetFloatv(GL_MODELVIEW_MATRIX,matrix);

hope that helps...