aboutsummaryrefslogtreecommitdiff
path: root/NvBlast/tools/ApexImporter/src/ApexDestructibleObjExporter.h
diff options
context:
space:
mode:
Diffstat (limited to 'NvBlast/tools/ApexImporter/src/ApexDestructibleObjExporter.h')
-rw-r--r--NvBlast/tools/ApexImporter/src/ApexDestructibleObjExporter.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/NvBlast/tools/ApexImporter/src/ApexDestructibleObjExporter.h b/NvBlast/tools/ApexImporter/src/ApexDestructibleObjExporter.h
new file mode 100644
index 0000000..cd6f238
--- /dev/null
+++ b/NvBlast/tools/ApexImporter/src/ApexDestructibleObjExporter.h
@@ -0,0 +1,47 @@
+#ifndef OBJ_APEX_EXPORTER_H
+#define OBJ_APEX_EXPORTER_H
+
+#include <string>
+#include <vector>
+#include "DestructibleAsset.h"
+
+
+
+
+namespace physx
+{
+ class PxVec3;
+ class PxVec2;
+}
+
+struct NvBlastAsset;
+
+namespace Nv
+{
+namespace Blast
+{
+
+class ApexDestructibleGeometryExporter
+{
+public:
+ ApexDestructibleGeometryExporter(std::string materialsDir, std::string exportDir) : m_materialsDir(materialsDir), m_exportDir(exportDir)
+ {}
+
+ bool exportToFile(NvBlastAsset* asset, const nvidia::apex::DestructibleAsset& apexAsset, const std::string& name, const std::vector<uint32_t>& chunkReorderInvMap, bool toFbx, bool toObj, bool fbxascii, bool toUe4);
+
+private:
+ ApexDestructibleGeometryExporter& operator=(const ApexDestructibleGeometryExporter&)
+ {
+ return *this;
+ }
+ const std::string m_materialsDir;
+ const std::string m_exportDir;
+
+};
+
+
+} // namespace Blast
+} // namespace Nv
+
+
+#endif //OBJ_EXPORTER_H