diff --git a/MeshConverter/MeshConverter.vcxproj b/MeshConverter/MeshConverter.vcxproj index 3f4239d..11b194e 100644 --- a/MeshConverter/MeshConverter.vcxproj +++ b/MeshConverter/MeshConverter.vcxproj @@ -77,6 +77,7 @@ + @@ -85,6 +86,7 @@ + diff --git a/MeshConverter/src/main.cpp b/MeshConverter/src/main.cpp index 2a6454c..f6f48b1 100644 --- a/MeshConverter/src/main.cpp +++ b/MeshConverter/src/main.cpp @@ -5,6 +5,7 @@ #include "md2/md2.h" #include "obj/obj.h" #include "sm/sm.h" +#include "ms3d/ms3d.h" int main(int argc, char **argv) { @@ -73,7 +74,7 @@ int main(int argc, char **argv) } else if (extension == ".sm") { - printf("Using SM converer.\n"); + printf("Using SM converter.\n"); StaticModel *sm = new StaticModel(); if (!sm->Load(file)) @@ -87,6 +88,22 @@ int main(int argc, char **argv) return 1; } } + else if (extension == ".ms3d") + { + printf("Using MS3D converter.\n"); + + Ms3d *ms3d = new Ms3d(); + if (!ms3d->Load(file)) + { + printf("Error loading MS3D file.\n\n"); + return 1; + } + if (!ms3d->ConvertToMesh(meshFile)) + { + printf("Error converting MS3D to MESH.\n\n"); + return 1; + } + } else { printf("Unrecognized file type.\n\n"); diff --git a/MeshConverter/src/ms3d/ms3d.cpp b/MeshConverter/src/ms3d/ms3d.cpp new file mode 100644 index 0000000..cbc9de9 --- /dev/null +++ b/MeshConverter/src/ms3d/ms3d.cpp @@ -0,0 +1,21 @@ +#include "ms3d.h" + +#include + +Ms3d::Ms3d() +{ +} + +void Ms3d::Release() +{ +} + +bool Ms3d::Load(const std::string &file) +{ + return false; +} + +bool Ms3d::ConvertToMesh(const std::string &file) +{ + return false; +} diff --git a/MeshConverter/src/ms3d/ms3d.h b/MeshConverter/src/ms3d/ms3d.h new file mode 100644 index 0000000..91a25cc --- /dev/null +++ b/MeshConverter/src/ms3d/ms3d.h @@ -0,0 +1,18 @@ +#ifndef __MS3D_H_INCLUDED__ +#define __MS3D_H_INCLUDED__ + +#include + +class Ms3d +{ +public: + Ms3d(); + virtual ~Ms3d() { Release(); } + + void Release(); + bool Load(const std::string &file); + bool ConvertToMesh(const std::string &file); + +}; + +#endif