Package net.sf.fysix.presentation.view

Examples of net.sf.fysix.presentation.view.View.render()


    for (WorldObject wo : world.getObjects()) {
      Vector2d pos = wo.getPosition();
      g2d.translate(pos.getX(), pos.getY());
      g2d.rotate(wo.getRotation());
      View view = wo.getView();
      view.render(g2d);
      g2d.setTransform(oldTrans);
    }
    View view = world.getGroundView();
    view.render(g2d);
  }
View Full Code Here


      View view = wo.getView();
      view.render(g2d);
      g2d.setTransform(oldTrans);
    }
    View view = world.getGroundView();
    view.render(g2d);
  }

  private void renderStars(Graphics2D g2d, double top, double bottom, double left, double right) {
    for (int y = (int) Math.floor(top / STAR_GRID); y < (int) Math.ceil(bottom / STAR_GRID); y++) {
      for (int x = (int) Math.floor(left / STAR_GRID); x < (int) Math.ceil(right / STAR_GRID); x++) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.