Read values in OpenGl Matrix

do I read the values in an OpenGL matrix. I know how to use glLoadMatrix to use one of my own, I need to be able to save it after proformimg rotation, translation, etc
Thanks

If you just want to save the current state of the matrix while calling out to some other function, use glPushMatrix() (and later glPopMatrix() to get it back after calling out).

If you want to save the matrix for an arbitrary later time (not using the stack) you should probably be doing your own matrix math. Look around on the web; there’s tons of matrix math packages to choose from. (Most of which might even be debugged and working!)

You can use glGetFloatv or glGetDoublev with the desired Matrix (GL_MODELVIEW_MATRIX …) and a pointer to some memory as Parameters. See the documentation.
Hope it helps.

Marc