Examples of polygon()


Examples of com.badlogic.gdx.graphics.glutils.ShapeRenderer.polygon()

      shapes.rect(bounds.getMinX(), bounds.getMinY(), bounds.getWidth(), bounds.getHeight());
      shapes.setColor(boundingBoxColor);
      Array<FloatArray> polygons = bounds.getPolygons();
      for (int i = 0, n = polygons.size; i < n; i++) {
        FloatArray polygon = polygons.get(i);
        shapes.polygon(polygon.items, 0, polygon.size);
      }
    }

    shapes.end();
    shapes.begin(ShapeType.Filled);
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.