diff options
| author | Bryan Galdrikian <[email protected]> | 2017-02-24 09:32:20 -0800 |
|---|---|---|
| committer | Bryan Galdrikian <[email protected]> | 2017-02-24 09:32:20 -0800 |
| commit | e1bf674c16e3c8472b29574159c789cd3f0c64e0 (patch) | |
| tree | 9f0cfce09c71a2c27ff19589fcad6cd83504477c /tools/common/FbxFileReader.h | |
| parent | first commit (diff) | |
| download | blast-e1bf674c16e3c8472b29574159c789cd3f0c64e0.tar.xz blast-e1bf674c16e3c8472b29574159c789cd3f0c64e0.zip | |
Updating to [email protected] and [email protected] with a new directory structure.
NvBlast folder is gone, files have been moved to top level directory. README is changed to reflect this.
Diffstat (limited to 'tools/common/FbxFileReader.h')
| -rw-r--r-- | tools/common/FbxFileReader.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/common/FbxFileReader.h b/tools/common/FbxFileReader.h new file mode 100644 index 0000000..ca288ad --- /dev/null +++ b/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 |