Examples of updateWorldVertices()


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

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

        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

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

        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

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

          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

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

      Slot slot = drawOrder.get(i);
      Attachment attachment = slot.attachment;
      Texture texture = null;
      if (attachment instanceof RegionAttachment) {
        RegionAttachment region = (RegionAttachment)attachment;
        region.updateWorldVertices(slot, premultipliedAlpha);
        vertices = region.getWorldVertices();
        triangles = quadTriangles;
        texture = region.getRegion().getTexture();

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

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

    for (int i = 0, n = drawOrder.size; i < n; i++) {
      Slot slot = drawOrder.get(i);
      Attachment attachment = slot.attachment;
      if (attachment instanceof RegionAttachment) {
        RegionAttachment regionAttachment = (RegionAttachment)attachment;
        regionAttachment.updateWorldVertices(slot, premultipliedAlpha);
        float[] vertices = regionAttachment.getWorldVertices();
        if (slot.data.getAdditiveBlending() != additive) {
          additive = !additive;
          if (additive)
            batch.setBlendFunction(srcFunc, GL20.GL_ONE);
View Full Code Here

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

      for (int i = 0, n = slots.size; i < n; i++) {
        Slot slot = slots.get(i);
        Attachment attachment = slot.attachment;
        if (attachment instanceof RegionAttachment) {
          RegionAttachment regionAttachment = (RegionAttachment)attachment;
          regionAttachment.updateWorldVertices(slot, false);
          float[] vertices = regionAttachment.getWorldVertices();
          shapes.line(vertices[X1], vertices[Y1], vertices[X2], vertices[Y2]);
          shapes.line(vertices[X2], vertices[Y2], vertices[X3], vertices[Y3]);
          shapes.line(vertices[X3], vertices[Y3], vertices[X4], vertices[Y4]);
          shapes.line(vertices[X4], vertices[Y4], vertices[X1], vertices[Y1]);
View Full Code Here

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

        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

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

          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.