diff options
author | Lukas Rusak <lorusak@gmail.com> | 2023-04-13 14:52:03 -0700 |
---|---|---|
committer | Lukas Rusak <lorusak@gmail.com> | 2023-05-12 20:50:23 -0700 |
commit | c383092929312c7b99f8ede5f508efe4ab14901f (patch) | |
tree | f593460175da51c1996d14b38ebe978575bbd1c2 /tools/depends/native/TexturePacker/src | |
parent | 5477fd7b34ab36c29a8f16f247f1650395af2442 (diff) |
TexturePacker: move Usage to anonymous namespace
Signed-off-by: Lukas Rusak <lorusak@gmail.com>
Diffstat (limited to 'tools/depends/native/TexturePacker/src')
-rw-r--r-- | tools/depends/native/TexturePacker/src/TexturePacker.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/depends/native/TexturePacker/src/TexturePacker.cpp b/tools/depends/native/TexturePacker/src/TexturePacker.cpp index bc4486acdf..a7b81ee05c 100644 --- a/tools/depends/native/TexturePacker/src/TexturePacker.cpp +++ b/tools/depends/native/TexturePacker/src/TexturePacker.cpp @@ -88,6 +88,15 @@ bool HasAlpha(unsigned char* argb, unsigned int width, unsigned int height) return false; } +void Usage() +{ + puts("Usage:"); + puts(" -help Show this screen."); + puts(" -input <dir> Input directory. Default: current dir"); + puts(" -output <dir> Output directory/filename. Default: Textures.xbt"); + puts(" -dupecheck Enable duplicate file detection. Reduces output file size. Default: off"); +} + } // namespace class TexturePacker @@ -238,15 +247,6 @@ CXBTFFrame TexturePacker::CreateXBTFFrame(DecodedFrame& decodedFrame, return frame; } -void Usage() -{ - puts("Usage:"); - puts(" -help Show this screen."); - puts(" -input <dir> Input directory. Default: current dir"); - puts(" -output <dir> Output directory/filename. Default: Textures.xbt"); - puts(" -dupecheck Enable duplicate file detection. Reduces output file size. Default: off"); -} - bool TexturePacker::CheckDupe(MD5Context* ctx, std::map<std::string, unsigned int>& hashes, std::vector<unsigned int>& dupes, |