aboutsummaryrefslogtreecommitdiff
path: root/NvBlast/tools/common/IMeshFileReader.h
diff options
context:
space:
mode:
authorBryan Galdrikian <[email protected]>2017-02-21 12:07:59 -0800
committerBryan Galdrikian <[email protected]>2017-02-21 12:07:59 -0800
commit446ce137c6823ba9eff273bdafdaf266287c7c98 (patch)
treed20aab3e2ed08d7b3ca71c2f40db6a93ea00c459 /NvBlast/tools/common/IMeshFileReader.h
downloadblast-1.0.0-beta.tar.xz
blast-1.0.0-beta.zip
first commitv1.0.0-beta
Diffstat (limited to 'NvBlast/tools/common/IMeshFileReader.h')
-rw-r--r--NvBlast/tools/common/IMeshFileReader.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/NvBlast/tools/common/IMeshFileReader.h b/NvBlast/tools/common/IMeshFileReader.h
new file mode 100644
index 0000000..d632a2f
--- /dev/null
+++ b/NvBlast/tools/common/IMeshFileReader.h
@@ -0,0 +1,21 @@
+#pragma once
+#include <memory>
+#include <string>
+#include "NvBlastExtAuthoringMesh.h"
+
+
+class IMeshFileReader
+{
+public:
+
+ /*
+ Load from the specified file path, returning a mesh or nullptr if failed
+ */
+ virtual std::shared_ptr<Nv::Blast::Mesh> loadFromFile(std::string filename) = 0;
+
+ virtual bool getConvertToUE4() { return bConvertToUE4; }
+ virtual void setConvertToUE4(bool bConvert) { bConvertToUE4 = bConvert; }
+
+private:
+ bool bConvertToUE4;
+}; \ No newline at end of file