PDA

View Full Version : getting the Ortho



satya
04-20-2004, 05:01 AM
Hello,

OpenGL has an api glOrtho to set the Ortho, is there an api or some way to get the Ortho?

TIA
satya

q3inu
04-28-2004, 08:10 AM
Try:
--------------------------------------------
GLint array[4*4];
glGetFloatv(GL_PROJECTION_MATRIX,array);
--------------------------------------------

ZbuffeR
04-28-2004, 09:36 AM
You probably meant :
--------------------------------------------
GLfloat array[4*4];
glGetFloatv(GL_PROJECTION_MATRIX,array);
--------------------------------------------