I’m working on a Heads Up Display for my application. I need to be able to acuratly place quads on the screen. This was easy before I used gluPerspective but now that it is enabled, -1x, -1y is no longer an exact corner.
Is there a way to disable gluPerspective while drawing the HUD and re-enable it for the rest of geometry?
The gluPerspective is nothing that is enabled or disabled. That function simply modifies currently set matrix so you can redefine that matrix at any time.
Well I thought I understood the code you gave me but I can’t seem to get it to work. The HUD quads don’t show at all in orthographic. I tried switching the Z location of the quads from negative to positive and turning off back-face culling.
I call ViewOrtho(config.resX, config.resY) imedietly before drawing the HUD and call ViewPerspective before drawing worldly geometry.