PDA

View Full Version : glortho



12-13-2002, 04:47 PM
I'm really new to opengl. Could someone post a very simple but complete example that uses glortho to change the coordinate scale so that it matches the screen coordinates? Then do something trivial like draw a triangle?

mikael_aronsson
12-15-2002, 12:15 AM
Using glOrtho is explained on the FAQ on this website, have a look there, you will find tons of OpenGL tutorials on google including what you are looking for.

If you are using Windows and aren't that familiar with the Win32 API I would suggest that you get GLUT for example to hide the ugly platform dependent stuff.

Mikael