Package com.esotericsoftware.spine.attachments

Examples of com.esotericsoftware.spine.attachments.MeshAttachment.updateWorldVertices()


        triangles = quadTriangles;
        texture = region.getRegion().getTexture();

      } else if (attachment instanceof MeshAttachment) {
        MeshAttachment mesh = (MeshAttachment)attachment;
        mesh.updateWorldVertices(slot, true);
        vertices = mesh.getWorldVertices();
        triangles = mesh.getTriangles();
        texture = mesh.getRegion().getTexture();

      } else if (attachment instanceof SkinnedMeshAttachment) {
View Full Code Here


        triangles = mesh.getTriangles();
        texture = mesh.getRegion().getTexture();

      } else if (attachment instanceof SkinnedMeshAttachment) {
        SkinnedMeshAttachment mesh = (SkinnedMeshAttachment)attachment;
        mesh.updateWorldVertices(slot, true);
        vertices = mesh.getWorldVertices();
        triangles = mesh.getTriangles();
        texture = mesh.getRegion().getTexture();

      } else if (attachment instanceof SkeletonAttachment) {
View Full Code Here

        float[] vertices = null;
        short[] triangles = null;
        int hullLength = 0;
        if (attachment instanceof MeshAttachment) {
          MeshAttachment mesh = (MeshAttachment)attachment;
          mesh.updateWorldVertices(slot, false);
          vertices = mesh.getWorldVertices();
          triangles = mesh.getTriangles();
          hullLength = mesh.getHullLength();
        } else if (attachment instanceof SkinnedMeshAttachment) {
          SkinnedMeshAttachment mesh = (SkinnedMeshAttachment)attachment;
View Full Code Here

          vertices = mesh.getWorldVertices();
          triangles = mesh.getTriangles();
          hullLength = mesh.getHullLength();
        } else if (attachment instanceof SkinnedMeshAttachment) {
          SkinnedMeshAttachment mesh = (SkinnedMeshAttachment)attachment;
          mesh.updateWorldVertices(slot, false);
          vertices = mesh.getWorldVertices();
          triangles = mesh.getTriangles();
          hullLength = mesh.getHullLength();
        }
        if (vertices == null || triangles == null) continue;
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.