Hello once again, and in this post I have yet another question. You don't learn anything if you don't ask questions, after all. So my new issue is, I've coded a font engine using openGL, but the issue is, I do not want to have to adjust it based on the players position, but have it constantly displaying on a seperate 'layer' with seperate glOrtho settings.
Basically, here is how one 'layer' currently looks:
This layer was created using the following glOrtho code:
GL11.glOrtho(0, width * 2, height * 2, 0, -2, -1);
And the other 'layer' looks like this:
Made using this glOrtho code:
GL11.glOrtho(player.getX() - 25, player.getX() + 40, player.getY() + 40, player.getY() - 25, -1, 1);
The issue with this is, when I combine both sets of glOrtho code, I don't get those 2 layers merged as you would expect, but I get a totally black box, with nothing within it.
Am I doing something wrong?
Can I not manage seperate 'layers' using glOrtho, is there another thing I'm supposed to be doing to manage seperate layers?
Any help would be appriciated, thanks.