glGetDoublev (GL_MODELVIEW_MATRIX, mvmatrix);
can get modelview matrix and projection matrix.
In opengl Es how to get?
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).
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.