PDA

View Full Version : Reading the matrices on the stack



Skrondo
10-27-2003, 04:41 PM
Sorry, but I am an absolute beginner...
Is there any function that I can use to
fetch the matrix that is on top of the
stack ?
Something that is the opposite of glLoadMatrix*()...

Thanks

S.

shinpaughp
10-27-2003, 05:31 PM
Use the glGetDoublev or glGetFloatv functions passing the name of the stack and a pointer to the allocated memory to receive the matrix data.

Skrondo
10-27-2003, 08:51 PM
Thanks!