aboutsummaryrefslogtreecommitdiff
path: root/NvBlast/tools/common/IMeshFileReader.h
diff options
context:
space:
mode:
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