Ejemplo n.º 1
0
 public static void orthoMode(Size size) {
   GL11.glDisable(GL11.GL_DEPTH_TEST);
   GL11.glMatrixMode(GL11.GL_PROJECTION);
   GL11.glPushMatrix();
   GL11.glLoadIdentity();
   GL11.glOrtho(0, size.getWidth(), 0, size.getHeight(), -10, 10);
   GL11.glMatrixMode(GL11.GL_MODELVIEW);
   GL11.glPushMatrix();
   GL11.glLoadIdentity();
 }
Ejemplo n.º 2
0
 public static Point getOpenGlPosition(Size displaySize, Point position) {
   return new Point(position.getX(), (displaySize.getHeight() - position.getY()));
 }