have a look at "glGetFloatv" with first parameters being:
GL_COLOR_MATRIX_SGI
GL_MODELVIEW_MATRIX
GL_PROJECTION_MATRIX
GL_TEXTURE_MATRIX
Of course, you should know which matrix mode you are in to
decide which of them you want.
Martin
--
+---------------------------------+-----------------------------------+
|Martin Knoblauch | Silicon Graphics GmbH |
|Manager Technical Marketing | Am Hochacker 3 - Technopark |
|Silicon Graphics Computer Systems| D-85630 Grasbrunn-Neukeferloh, FRG|
|---------------------------------| Phone: (+int) 89 46108-179 or -0 |
|http://reality.sgi.com/knobi | Fax: (+int) 89 46107-179 |
+---------------------------------+-----------------------------------+
|e-mail: <kn...@munich.sgi.com> | VM: 6-333-8179 | M/S: IDE-3150 |
+---------------------------------------------------------------------+
GLfloat pmat[16], mmat[16], tmat[16];
glGetFloatv (GL_PROJECTION_MATRIX, pmat);
glGetFloatv (GL_MODELVIEW_MATRIX, mmat);
glGetFloatv (GL_TEXTURE_MATRIX, tmat);
That code will return the top of the three matrix stacks.
--
-paul ma...@shaft.fc.hp.com
Hewlett Packard Graphics Products Lab
"Technology can be used for good or evil. Please use only for good."