About glFrustum document

Hi guys,
I’m reading the glFrustum doc, found there might be a mistake, for example,
the output of glFrustum(-1,1,-1,1,1,2) is

 1.000000  0.000000  0.000000  0.000000
 0.000000  1.000000  0.000000  0.000000
 0.000000  0.000000 -3.000000 -1.000000
 0.000000  0.000000 -4.000000  0.000000

which does not match the matrix in the doc. But if we swap the position of -1 and D in the doc, then they will match. Can someone confirm this typo for me? Or can someone confirm me that matrix illustrated in the gl doc is row major or column major? many thank!

Sorry, my bad, glGetFloatv(GL_MODELVIEW_MATRIX,mat) return matrix in column major order. that’s it.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.