diff options
Diffstat (limited to 'MagicEx/src/mag2obj.cpp')
-rw-r--r-- | MagicEx/src/mag2obj.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/MagicEx/src/mag2obj.cpp b/MagicEx/src/mag2obj.cpp new file mode 100644 index 0000000..1439ac7 --- /dev/null +++ b/MagicEx/src/mag2obj.cpp @@ -0,0 +1,23 @@ +/* Starshatter: The Open Source Project + Copyright (c) 2021-2024, Starshatter: The Open Source Project Contributors + Copyright (c) 2011-2012, Starshatter OpenSource Distribution Contributors + Copyright (c) 1997-2006, Destroyer Studios LLC. +*/ + +#include <string> + +#include <ModelFileMAG.h> +#include <ModelFileOBJ.h> + +#include "convert.h" + + +int +main(int argc, char* argv[]) +{ + if (argc < 2) + return 2; + const std::string input {argv[1]}; + const auto output = input + ".obj"; + return starshatter::convert<ModelFileMAG, ModelFileOBJ>(input, output); +} |