How to get the current openg matrix

Hi,

How can I get the current opengl state mechine value(the state matrix), for example the current matrix mode is
glMatrixMode( GL_MODELVIEW );, is there any opengl function to get the current matrix value? Thanks a lot!

Leo

glGetIntegerv glGetFloatv, etc etc. It’s right there in the docs

Duplicate thread collapse: here.