New Paste :: Recent Pastes:: No Line Numbers
inverted origin by DELTRON
1
glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluOrtho2D(0, WINDOW_X, 0, WINDOW_Y); // invert the y axis so that down is positive glScalef(1, -1, 1); // origin will be upper left glTranslatef(0, -WINDOW_Y, 0); glMatrixMode(GL_MODELVIEW); glLoadIdentity();