applying matrix to vertex

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!


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);


glGetFloatv(GL_PROJECTION_MATRIX, ptr2array) to get the current transformation matrix.

more information can be found here.