Function for Copy Matrix

BlitzMax Forums/OpenGL Module/Function for Copy Matrix

Drey(Posted 2005) [#1]
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.


Chris C(Posted 2005) [#2]
Local m:Float[16]
glGetFloatv(GL_MODELVIEW_MATRIX,Varptr m[0])

....

glMultMatrixf (m)

hope that helps!


Drey(Posted 2005) [#3]
got it. Thanks man.


Chris C(Posted 2005) [#4]
np!