Package com.badlogic.gdx.utils

Examples of com.badlogic.gdx.utils.FloatArray.ensureCapacity()


      int vertexCount = frameVertices[0].length;

      FloatArray verticesArray = slot.getAttachmentVertices();
      if (verticesArray.size != vertexCount) alpha = 1; // Don't mix from uninitialized slot vertices.
      verticesArray.size = 0;
      verticesArray.ensureCapacity(vertexCount);
      verticesArray.size = vertexCount;
      float[] vertices = verticesArray.items;

      if (time >= frames[frames.length - 1]) { // Time is after last frame.
        float[] lastVertices = frameVertices[frames.length - 1];
View Full Code Here


        boundingBoxes.add(boundingBox);

        FloatArray polygon = polygonPool.obtain();
        polygons.add(polygon);
        int vertexCount = boundingBox.getVertices().length;
        polygon.ensureCapacity(vertexCount);
        polygon.size = vertexCount;

        boundingBox.computeWorldVertices(slot.bone, polygon.items);
      }
    }
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.