Package arc.packer
Class TexturePacker
java.lang.Object
arc.packer.TexturePacker
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static interface
static class
static class
static class
-
Constructor Summary
ConstructorDescriptionTexturePacker
(TexturePacker.Settings settings) TexturePacker
(File rootDir, TexturePacker.Settings settings) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
static boolean
isModified
(String input, String output, String packFileName, TexturePacker.Settings settings) static void
void
static void
process
(TexturePacker.Settings settings, String input, String output, String packFileName) static void
Packs using defaults settings.static boolean
processIfModified
(TexturePacker.Settings settings, String input, String output, String packFileName) static boolean
processIfModified
(String input, String output, String packFileName) void
setRootDir
(File rootDir)
-
Constructor Details
-
TexturePacker
- Parameters:
rootDir
- SeesetRootDir(File)
.
-
TexturePacker
-
-
Method Details
-
setRootDir
- Parameters:
rootDir
- Used to strip the root directory prefix from image file names, can be null.
-
addImage
-
addImage
-
pack
-
process
Packs using defaults settings. -
process
public static void process(TexturePacker.Settings settings, String input, String output, String packFileName) - Parameters:
input
- Directory containing individual images to be packed.output
- Directory where the pack file and page images will be written.packFileName
- The name of the pack file. Also used to name the page images.
-
isModified
public static boolean isModified(String input, String output, String packFileName, TexturePacker.Settings settings) - Returns:
- true if the output file does not yet exist or its last modification date is before the last modification date of the input file
-
processIfModified
-
processIfModified
public static boolean processIfModified(TexturePacker.Settings settings, String input, String output, String packFileName) -
main
- Throws:
Exception
-