PDA

View Full Version : How to set GL_PROJECTION?



amidofu
10-04-2010, 10:35 PM
Does anyone know how to set projection matrix GL_PROJECTION? I mean how do I use my own matrix as GL_PROJECTION? Thank you.

BionicBytes
10-06-2010, 03:02 PM
Use glMatrixMode (GL_PROJECTION), then use glLoadMatrixf to upload your own matrix to GL.
Remeber to set the matrixmode back to GL_MODELVIEW when done.