Obtaining Current Transformation Matrix

Hello. I’ve been looking around on these forums, Googled it, and also looked through the methods in GL and GLU. That said, I haven’t been able to hunt down any method of obtaining the current transformation matrix. Is this possible, and if so, how?

Thanks for any help.

Edit:
Well, I appear to have found it. If I understand correctly, I use

float[] transform = new float[16];
gl.glGetFloatv(GL.GL_MODELVIEW_MATRIX, transform, 0);

if I want it in float precision.
However, this is printing out something I find a bit strange. Is the model view matrix affected directly by calls to GLU.gluLookAt? Furthermore, does calling gl.glLoadIdentity() erase the effects of GLU.gluLookAt?

I think you should find answers here:
http://www.opengl.org/resources/faq/technical/viewing.htm
and here:
http://www.opengl.org/resources/faq/technical/transformations.htm

I’ve taken a quick skim, and they look useful. I’ll read them more thoroughly.

I’m also gonna bookmark that site. Thanks a lot.