diff options
Diffstat (limited to 'NvBlast/tools/common/FbxFileReader.h')
| -rw-r--r-- | NvBlast/tools/common/FbxFileReader.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/NvBlast/tools/common/FbxFileReader.h b/NvBlast/tools/common/FbxFileReader.h new file mode 100644 index 0000000..ca288ad --- /dev/null +++ b/NvBlast/tools/common/FbxFileReader.h @@ -0,0 +1,23 @@ +#pragma once +#include "IMeshFileReader.h" +#include "fbxsdk.h" + +class FbxFileReader: public IMeshFileReader +{ +public: + FbxFileReader(); + ~FbxFileReader() = default; + + /* + Load from the specified file path, returning a mesh or nullptr if failed + */ + std::shared_ptr<Nv::Blast::Mesh> loadFromFile(std::string filename) override; + +private: + + // Should we convert the scene to UE4 coordinate system on load? + bool bConvertToUE4; + + FbxAMatrix getTransformForNode(FbxNode* node); + void getFbxMeshes(FbxNode* node, std::vector<FbxNode*>& meshNodes); +};
\ No newline at end of file |