PDA

View Full Version : How to get the current openg matrix



Leonardave
06-04-2009, 12:13 AM
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

Ilian Dinev
06-04-2009, 12:40 AM
glGetIntegerv glGetFloatv, etc etc. It's right there in the docs

Dark Photon
06-04-2009, 05:27 AM
Duplicate thread collapse: here (http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=258396).