Function for Copy Matrix

BlitzMax Forums/BlitzMax OpenGL Programming/Function for Copy Matrix

I want to save the current matrix into my own array. Is there a function call to do this? I'm sure there is. glLoadMatrix makes your array the current matrix, so i want the opposite effect.

Local m:Float[16]
glGetFloatv(GL_MODELVIEW_MATRIX,Varptr m[0])

....

glMultMatrixf (m)

hope that helps!

got it. Thanks man.

np!