Example usage for com.badlogic.gdx.tools.texturepacker TextureUnpacker splitAtlas

List of usage examples for com.badlogic.gdx.tools.texturepacker TextureUnpacker splitAtlas

Introduction

In this page you can find the example usage for com.badlogic.gdx.tools.texturepacker TextureUnpacker splitAtlas.

Prototype

public void splitAtlas(TextureAtlasData atlas, String outputDir) 

Source Link

Document

Splits an atlas into seperate image and ninepatch files.

Usage

From source file:com.o2d.pkayjava.editor.proxy.ResolutionManager.java

License:Apache License

public void unpackAtlasIntoTmpFolder(File atlasFile, String tmpDir) {
    FileHandle atlasFileHandle = new FileHandle(atlasFile);
    TextureAtlas.TextureAtlasData atlasData = new TextureAtlas.TextureAtlasData(atlasFileHandle,
            atlasFileHandle.parent(), false);
    TextureUnpacker unpacker = new TextureUnpacker();
    unpacker.splitAtlas(atlasData, tmpDir);
}