i need to apply current matrix to vertex and store result in memory. opposite function to glLoadMatrix could solve it but i haven’t found it… plz help me!
Hi.
I hope this will help you.
The Query Commands
These are commands for obtaining simple state variables, and one for determining whether a particular state is enabled or disabled.
void glGetIntegerv(GLenum pname, GLint *params);
void glGetFloatv(GLenum pname, GLfloat *params);
void glGetDoublev(GLenum pname, GLdouble *params);
use
glGetFloatv(GL_PROJECTION_MATRIX, ptr2array) to get the current transformation matrix.
more information can be found here. http://fly.srk.fer.hr/~unreal/theredbook/appendixb.html
satish.