PDA

View Full Version : X,Y coordinates of opengl window



kabrit
12-24-2001, 03:52 PM
How do I change the orientation of the x and y coordinates.

zed
12-24-2001, 07:46 PM
for a 2d window?

normally
gluOrtho2D (0, windowWidth, 0, windowHeight);
reversed use
gluOrtho2D (windowWidth, 0, windowHeight, 0);