Package org.newdawn.slick.geom

Examples of org.newdawn.slick.geom.Shape


   */
  public void render(GameContainer container, Graphics g)
      throws SlickException {
    g.setColor(Color.green);
    for (int i = 0; i < original.size(); i++) {
      Shape shape = (Shape) original.get(i);
      g.draw(shape);
    }

    g.setColor(Color.white);
    if (quadSpaceShapes != null) {
      g.draw(quadSpaceShapes[0][0]);
    }
   
    g.translate(0, 320);

    for (int i = 0; i < combined.size(); i++) {
      g.setColor(Color.white);
      Shape shape = (Shape) combined.get(i);
      g.draw(shape);
      for (int j = 0; j < shape.getPointCount(); j++) {
        g.setColor(Color.yellow);
        float[] pt = shape.getPoint(j);
        g.fillOval(pt[0] - 1, pt[1] - 1, 3, 3);
      }
    }

  }
View Full Code Here

TOP

Related Classes of org.newdawn.slick.geom.Shape

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.