gvm
02-06-2003, 02:46 AM
Hello friends!
I have problem with matrices. for example, I'm doing this:
glPushMatrix();
glTranslatef(1,0.5,-5);
glRotatef(47, 1, 0.5, 0);
// HOW TO GET THIS MATRIX????
glPopMatrix();
the problem in that glGetFloatv(mymatrix, GL_MODELVIEW_MATRIX)
"The params parameter returns 16 values: the modelview matrix on the top of the modelview matrix stack. " (MSDN)
I need to get current matrix. I do not need the "matrix on the top of the modelvi..."!!!
How to do this?
I have problem with matrices. for example, I'm doing this:
glPushMatrix();
glTranslatef(1,0.5,-5);
glRotatef(47, 1, 0.5, 0);
// HOW TO GET THIS MATRIX????
glPopMatrix();
the problem in that glGetFloatv(mymatrix, GL_MODELVIEW_MATRIX)
"The params parameter returns 16 values: the modelview matrix on the top of the modelview matrix stack. " (MSDN)
I need to get current matrix. I do not need the "matrix on the top of the modelvi..."!!!
How to do this?