diff options
| author | Bryan Galdrikian <[email protected]> | 2017-02-21 12:07:59 -0800 |
|---|---|---|
| committer | Bryan Galdrikian <[email protected]> | 2017-02-21 12:07:59 -0800 |
| commit | 446ce137c6823ba9eff273bdafdaf266287c7c98 (patch) | |
| tree | d20aab3e2ed08d7b3ca71c2f40db6a93ea00c459 /NvBlast/tools/common/FbxFileReader.h | |
| download | blast-1.0.0-beta.tar.xz blast-1.0.0-beta.zip | |
first commitv1.0.0-beta
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 |