Package com.badlogic.gdx.graphics.glutils

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


    if (drawBoundingBoxes) {
      SkeletonBounds bounds = this.bounds;
      bounds.update(skeleton, true);
      shapes.setColor(aabbColor);
      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);
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.