Changing origin of screen and objects in ortho mode

Working on a custom GUI system and was wondering if there is a way to change the screen (world?) origin from 0y being at the bottom of the display to at the top, and changing the origin of say a quad from the center to the top left corner? Thanks

It would be very easy to write a conversion method, not?

SeySayux said:

It would be very easy to write a conversion method, not?


probably, but i'm thinking more along the lines of "set it and forget it." where i can just call a method that sets the location of the origin for the display and for all spatials created for the ortho queue. is something like that possible?

I don't know, but I think something like that is impossible. I believe it's hard coded into openGL. You'll need to stick with a conversion method, like this.


whateveryouwantinorthoqueue.setLocalTranslation.(toOrthoLocation(new Vector3f(0,0,0)));

For the Quad, you could easily write your own Quad that is centered at the top left.

any reason you are not using fenggui