I want to multiply two matrices and get the resulting matrix. For example for testing I tried to do this:
GLdouble mat[16];
GLdouble m[16] = 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
glPushMatrix();
glMultMatrixd(m);
glLoadIdentity();
glPopMatrix();
glGetDoublev
(GL_MODELVIEW_MATRIX,mat);
I want mat to return a matrix with zeros but it returns something different. How would I get the matrix after glMultMatrixd(m)?
Thanks,
Marc