Examples of AtlasAttachmentLoader


Examples of com.esotericsoftware.spine.attachments.AtlasAttachmentLoader

  private final AttachmentLoader attachmentLoader;
  private float scale = 1;

  public SkeletonBinary (TextureAtlas atlas) {
    attachmentLoader = new AtlasAttachmentLoader(atlas);
  }
View Full Code Here

Examples of com.esotericsoftware.spine.attachments.AtlasAttachmentLoader

  private final AttachmentLoader attachmentLoader;
  private float scale = 1;

  public SkeletonJson (TextureAtlas atlas) {
    attachmentLoader = new AtlasAttachmentLoader(atlas);
  }
View Full Code Here

Examples of com.esotericsoftware.spine.attachments.AtlasAttachmentLoader

    atlas = new TextureAtlas(Gdx.files.internal("spineboy/spineboy.atlas"));

    // This loader creates Box2dAttachments instead of RegionAttachments for an easy way to keep
    // track of the Box2D body for each attachment.
    AtlasAttachmentLoader atlasLoader = new AtlasAttachmentLoader(atlas) {
      public RegionAttachment newRegionAttachment (Skin skin, String name, String path) {
        Box2dAttachment attachment = new Box2dAttachment(name);
        AtlasRegion region = atlas.findRegion(attachment.getName());
        if (region == null) throw new RuntimeException("Region not found in atlas: " + attachment);
        attachment.setRegion(region);
View Full Code Here

Examples of com.esotericsoftware.spine.attachments.AtlasAttachmentLoader

  private final AttachmentLoader attachmentLoader;
  private float scale = 1;

  public SkeletonBinary (TextureAtlas atlas) {
    attachmentLoader = new AtlasAttachmentLoader(atlas);
  }
View Full Code Here

Examples of com.esotericsoftware.spine.attachments.AtlasAttachmentLoader

public class SkeletonJson {
  private final AttachmentLoader attachmentLoader;
  private float scale = 1;

  public SkeletonJson (TextureAtlas atlas) {
    attachmentLoader = new AtlasAttachmentLoader(atlas);
  }
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.