Reputation: 195
I have noticed that in LWJGL the (0, 0) coordinate is in the bottom left. I am used to and find it much more logical when (0, 0) is on the top left. I was wondering if it was possible to make (0, 0) become the top left of the screen.
Yes I do understand that OpenGL's default (0, 0) is the bottom left, but I was hoping there was a way around this.
Thanks in advance,
ixenocider
Upvotes: 0
Views: 1557
Reputation: 195
I figured it out.
Where you usually put this:
GL11.glOrtho(0, screenWidth, 0, screenHeight, 1, -1);
GL11.glOrtho(0, screenWidth, screenHeight, 0, 1, -1);
Upvotes: 3