Package com.badlogic.gdx.utils

Examples of com.badlogic.gdx.utils.DataInput.readByte()


        boneData.y = input.readFloat() * scale;
        boneData.scaleX = input.readFloat();
        boneData.scaleY = input.readFloat();
        boneData.rotation = input.readFloat();
        boneData.length = input.readFloat() * scale;
        boneData.inheritScale = input.readByte() == 1;
        boneData.inheritRotation = input.readByte() == 1;
        skeletonData.addBone(boneData);
      }

      // Slots.
View Full Code Here


        boneData.scaleX = input.readFloat();
        boneData.scaleY = input.readFloat();
        boneData.rotation = input.readFloat();
        boneData.length = input.readFloat() * scale;
        boneData.inheritScale = input.readByte() == 1;
        boneData.inheritRotation = input.readByte() == 1;
        skeletonData.addBone(boneData);
      }

      // Slots.
      for (int i = 0, n = input.readInt(true); i < n; i++) {
View Full Code Here

        BoneData boneData = skeletonData.findBone(boneName);
        if (boneData == null) throw new SerializationException("Bone not found: " + boneName);
        SlotData slotData = new SlotData(slotName, boneData);
        Color.rgba8888ToColor(slotData.getColor(), input.readInt());
        slotData.setAttachmentName(input.readString());
        slotData.additiveBlending = input.readByte() == 1;
        skeletonData.addSlot(slotData);
      }

      // Default skin.
      Skin defaultSkin = readSkin(input, "default");
View Full Code Here

        IkConstraintData ikConstraintData = new IkConstraintData(input.readString());
        for (int ii = 0, nn = input.readInt(true); ii < nn; ii++)
          ikConstraintData.bones.add(skeletonData.bones.get(input.readInt(true)));
        ikConstraintData.target = skeletonData.bones.get(input.readInt(true));
        ikConstraintData.mix = input.readFloat();
        ikConstraintData.bendDirection = input.readByte();
        skeletonData.ikConstraints.add(ikConstraintData);
      }

      // Slots.
      for (int i = 0, n = input.readInt(true); i < n; i++) {
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.