Package com.esotericsoftware.spine.attachments

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


    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

      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

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.