I have a resizable window programmed into my game, and oddly enough, the coordinate (0,0) isn’t at the upper left of the screen when it’s maximized. Here’s a screenshot:
http://img13.imageshack.us/img13/6024/newbitmapimagemj.png
The mugshot of player should be in the corner, because it’s translated to 0,0 every step. Obviously, it didn’t move to the corner, so what’s up?
The viewport is reset in the “core” of the game, like this:
glViewport(0, 0, Display.getWidth(), Display.getHeight());
glClearColor(0,0,0,1);
glClearDepth(1f);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
and the ortho projection is elsewhere, (after the above, though)
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(0, Display.getWidth(), Display.getHeight(), 0, -CAMERA_NEARFAR, CAMERA_NEARFAR);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
I’m at wits end, not exactly sure why he won’t draw in the corner, even after my demands to go there.