title: How do you get the modelview and projection matrices in OpenGL?
body: <p>I am trying to use the OpenGL Shading Language (GLSL) version 1.5 to make vertex and geometry shaders. </p>
  
  <p>I have learned that in GLSL version 1.5, the built-in variables like <code>gl_ModelViewProjectionMatrix</code> are deprecated so you have to pass them in manually. If I have already set the modelview and projection matrices (using <code>gluLookAt</code> and <code>gluPerspective</code> 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 <code>glGetMatrix()</code>, but I can't find that function in any official documentation, and it doesn't seem to exist in the implementation I am using (I get a compilation error <code>unknown identifier: glGetMatrix</code> when I try to compile it with that function).</p>