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

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

Introduction

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

Prototype

TextureUnpacker

Source Link

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);
}