PDA

View Full Version : How to understand glOrtho function?



Yanger_xy
11-11-2010, 08:52 PM
I am the beginner, and i am reading the book named <<OpenGL Super Bible>> (3rd edition), when i turn to page33, there is a glOrtho function, i can not understand it, may u help me, thanks.

ZbuffeR
11-12-2010, 03:34 AM
I don't have this book.
Reading this :
http://www.opengl.org/sdk/docs/man/xhtml/glOrtho.xml
What are the parts you have problem with ?
Basicaly glOrtho define a "rectangular cuboid" to be the visible volume, and fits it in the glViewport.

Yanger_xy
11-12-2010, 11:21 PM
Thanks a lot.