diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-01 14:14:10 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-01 14:14:10 +0200 |
commit | c29af0d0c0903eb24bf6fc2c2ef8593563b128c9 (patch) | |
tree | 86ff81c5fac9bbb3d8a4bd5304bf3501b0f00da8 /big-atlas-tool/main.cpp | |
parent | e6518bd1e326aea2ea776282259e8af6cfce61d3 (diff) |
a
Diffstat (limited to 'big-atlas-tool/main.cpp')
-rw-r--r-- | big-atlas-tool/main.cpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/big-atlas-tool/main.cpp b/big-atlas-tool/main.cpp deleted file mode 100644 index edc882ad..00000000 --- a/big-atlas-tool/main.cpp +++ /dev/null @@ -1,34 +0,0 @@ -#include "big-atlas.hpp" -#include "tile/serialize.hpp" -#include <tuple> -#include <filesystem> -#include <Corrade/Utility/Arguments.h> - -using Corrade::Utility::Arguments; - -struct options final { - std::filesystem::path input_dir, output_file; -}; - -static std::tuple<options, Arguments, bool> parse_cmdline(int argc, const char* const* argv) noexcept -{ - Corrade::Utility::Arguments args{}; - args.addOption('o', "output") - .addArrayArgument("input"); - args.parse(argc, argv); - options opts; - opts.input_dir = args.value<std::string>("input"); - - if (opts.input_dir.empty()) - opts.output_file = opts.input_dir.parent_path() / "big-atlas.json"; - - return { std::move(opts), std::move(args), true }; -} - -int main(int argc, char** argv) -{ - big_atlas_builder builder; - builder.add_atlas("images/metal1.png"); - builder.add_atlas("images/metal2.png"); - return 0; -} |