PDA

View Full Version : applying matrix to vertex



miko
10-19-2002, 10:09 AM
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!

iluvgfx
10-19-2002, 10:45 AM
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.