Package Hexel.rendering

Examples of Hexel.rendering.Camera


            }
            page.fillRect(x*s+cx, -y*s+cy, s, s);
          }
        }

        Camera camera = Renderer.dbgCamera;
        if (camera != null){
          page.setColor(Color.yellow);
          page.fillRect(cx-2, cy-2, s*4, s*4);
        }
        System.out.println(System.currentTimeMillis() - t0);
View Full Code Here


      @Override public void keyReleased(KeyEvent e) {}
    });
    new Timer(1000, new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        Camera camera = Renderer.dbgCamera;
        if (camera != null){
          int x = (int) camera.getCameraX();
          int y = (int) camera.getCameraY();
          Vector2d tmp = new Vector2d();
          Vector3i p = new Vector3i();
          HexGeometry.cartesianToBlock(x, y, 0, tmp, p);
          xshift = p.x;
          yshift = p.y;
View Full Code Here

TOP

Related Classes of Hexel.rendering.Camera

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.