How can I get the current Matrix

I want to implement a interface with rotated
light,the rotate angle is controlled by
the mouse,but how can I get the current matrix and save it into a matrix for the next rotation?

You can save it into its owned stack by

glPushMatrix();

OR

get the matrix by

float mat[16];
glGetFloatv(GL_MODELVIEW_MATRIX, mat);

Originally posted by Coconut:
[b]You can save it into its owned stack by

glPushMatrix();

OR

get the matrix by

float mat[16];
glGetFloatv(GL_MODELVIEW_MATRIX, mat);

[/b]

Thank you very much!