Package com.badlogic.gdx.utils

Examples of com.badlogic.gdx.utils.FloatArray


    float x = skeleton.getX(), y = skeleton.getY();
    Object[] skeletonBones = skeleton.getBones().items;
    float[] weights = this.weights;
    int[] bones = this.bones;

    FloatArray ffdArray = slot.getAttachmentVertices();
    if (ffdArray.size == 0) {
      for (int w = 0, v = 0, b = 0, n = bones.length; v < n; w += 5) {
        float wx = 0, wy = 0;
        int nn = bones[v++] + v;
        for (; v < nn; v++, b += 3) {
View Full Code Here


        | ((int)(skeletonColor.b * slotColor.b * meshColor.b * multiplier) << 16) //
        | ((int)(skeletonColor.g * slotColor.g * meshColor.g * multiplier) << 8) //
        | (int)(skeletonColor.r * slotColor.r * meshColor.r * multiplier));

    float[] worldVertices = this.worldVertices;
    FloatArray slotVertices = slot.getAttachmentVertices();
    float[] vertices = this.vertices;
    if (slotVertices.size == vertices.length) vertices = slotVertices.items;
    Bone bone = slot.getBone();
    float x = skeleton.getX() + bone.getWorldX(), y = skeleton.getY() + bone.getWorldY();
    float m00 = bone.getM00(), m01 = bone.getM01(), m10 = bone.getM10(), m11 = bone.getM11();
View Full Code Here

      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);
      }
    }

    shapes.end();
View Full Code Here

    }
    return attributes;
  }

  private static FloatArray readUVSet (BufferedReader in, int numVertices, boolean flipV) throws IOException {
    FloatArray uvSet = new FloatArray(numVertices * 2);
    FloatArray uv = new FloatArray(2);
    for (int i = 0; i < numVertices; i++) {
      readFloatArray(in, uv);
      uvSet.add(uv.items[0]);
      uvSet.add(flipV ? 1 - uv.items[1] : uv.items[1]);
    }
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.utils.FloatArray

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.