How do you get the modelview and projection matrices in OpenGL?
I am trying to use the OpenGL Shading Language (GLSL) version 1.5 to make vertex and geometry shaders. I have learned that in GLSL version 1.5, the built-in variables like gl_ModelViewProjectionMatrix are deprecated so you have to pass them in manually. If I have already set the modelview and projection matrices (using gluLookAt and gluPerspective for example) then how do I get the matrices to pass into the vertex and geometry shaders? I've done some searching and some sites seem to mention a function glGetMatrix() , but I can't find that function in any official documentation, and it doesn't