Texturepacker: Libgdx
java -cp gdx.jar:gdx-tools.jar com.badlogic.gdx.tools.texturepacker.Main import com.badlogic.gdx.tools.texturepacker.TexturePacker; public class TexturePackerExample { public static void main(String[] args) { // Parameters: inputDir, outputDir, packFileName TexturePacker.process("input/images", "output", "my-atlas");
// Output format settings.format = ImageFormat.RGBA8888; settings.filterMin = TextureFilter.Linear; settings.filterMag = TextureFilter.Linear; libgdx texturepacker
Here's how to generate content (atlas and image files) using libGDX TexturePacker: java -cp gdx.jar:gdx-tools.jar com.badlogic.gdx.tools.texturepacker.TexturePacker Or with the main class: java -cp gdx
// Padding and bleeding settings.paddingX = 2; settings.paddingY = 2; settings.bleed = true; settings.duplicatePadding = true; settings.edgePadding = true; // Output format settings.format = ImageFormat.RGBA8888
Leave a Reply