How to get current MODELVIEW MATRIX and PROJECTION MATRI

In opengl
glGetDoublev (GL_MODELVIEW_MATRIX, mvmatrix);
glGetDoublev (GL_PROJECTION_MATRIX,pjmatrix);
can get modelview matrix and projection matrix.
In opengl Es how to get?
Tanks!

Currently, in OpenGL|ES, you must track the matrices, because OpenGL|ES doesn’t allow glGetxxx for dynamic states, but if your OpenGL|ES implementation supports the GL_OES_matrix_get (read this extension in the GLES1.1 spec for more information) extension, you will be able to get the current matrices.

For OpenGL ES 1.0 there is also the OES_query_matrix optional extension which is supported by some implementations (e.g., Nokia Series 60 phones support it).

–jani;

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.