diff options
Diffstat (limited to 'src/3rdparty/assimp/code/glTFExporter.h')
-rw-r--r-- | src/3rdparty/assimp/code/glTFExporter.h | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/src/3rdparty/assimp/code/glTFExporter.h b/src/3rdparty/assimp/code/glTFExporter.h index 884d1fe38..c813fff44 100644 --- a/src/3rdparty/assimp/code/glTFExporter.h +++ b/src/3rdparty/assimp/code/glTFExporter.h @@ -2,7 +2,8 @@ Open Asset Import Library (assimp) ---------------------------------------------------------------------- -Copyright (c) 2006-2016, assimp team +Copyright (c) 2006-2017, assimp team + All rights reserved. Redistribution and use of this software in source and binary forms, @@ -44,24 +45,28 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #ifndef AI_GLTFEXPORTER_H_INC #define AI_GLTFEXPORTER_H_INC +#ifndef ASSIMP_BUILD_NO_GLTF_IMPORTER + #include <assimp/types.h> #include <assimp/material.h> + #include <sstream> #include <vector> #include <map> - #include <memory> - struct aiScene; struct aiNode; struct aiMaterial; namespace glTF { - class Asset; + template<class T> + class Ref; + class Asset; struct TexProperty; + struct Node; } namespace Assimp @@ -89,20 +94,25 @@ namespace Assimp std::map<std::string, unsigned int> mTexturesByPath; - glTF::Asset* mAsset; + std::shared_ptr<glTF::Asset> mAsset; std::vector<unsigned char> mBodyData; void WriteBinaryData(IOStream* outfile, std::size_t sceneLength); + void GetTexSampler(const aiMaterial* mat, glTF::TexProperty& prop); void GetMatColorOrTex(const aiMaterial* mat, glTF::TexProperty& prop, const char* propName, int type, int idx, aiTextureType tt); void ExportMetadata(); void ExportMaterials(); void ExportMeshes(); - unsigned int ExportNode(const aiNode* node); + unsigned int ExportNodeHierarchy(const aiNode* n); + unsigned int ExportNode(const aiNode* node, glTF::Ref<glTF::Node>& parent); void ExportScene(); + void ExportAnimations(); }; } -#endif +#endif // ASSIMP_BUILD_NO_GLTF_IMPORTER + +#endif // AI_GLTFEXPORTER_H_INC |