|
@@ -1034,6 +1034,12 @@ namespace glTF2
|
|
bool KHR_texture_transform;
|
|
bool KHR_texture_transform;
|
|
} extensionsUsed;
|
|
} extensionsUsed;
|
|
|
|
|
|
|
|
+ //! Keeps info about the required extensions
|
|
|
|
+ struct RequiredExtensions
|
|
|
|
+ {
|
|
|
|
+ bool KHR_draco_mesh_compression;
|
|
|
|
+ } extensionsRequired;
|
|
|
|
+
|
|
AssetMetadata asset;
|
|
AssetMetadata asset;
|
|
|
|
|
|
|
|
|
|
@@ -1076,6 +1082,7 @@ namespace glTF2
|
|
, textures (*this, "textures")
|
|
, textures (*this, "textures")
|
|
{
|
|
{
|
|
memset(&extensionsUsed, 0, sizeof(extensionsUsed));
|
|
memset(&extensionsUsed, 0, sizeof(extensionsUsed));
|
|
|
|
+ memset(&extensionsRequired, 0, sizeof(extensionsRequired));
|
|
}
|
|
}
|
|
|
|
|
|
//! Main function
|
|
//! Main function
|
|
@@ -1094,6 +1101,7 @@ namespace glTF2
|
|
void ReadBinaryHeader(IOStream& stream, std::vector<char>& sceneData);
|
|
void ReadBinaryHeader(IOStream& stream, std::vector<char>& sceneData);
|
|
|
|
|
|
void ReadExtensionsUsed(Document& doc);
|
|
void ReadExtensionsUsed(Document& doc);
|
|
|
|
+ void ReadExtensionsRequired(Document& doc);
|
|
|
|
|
|
IOStream* OpenFile(std::string path, const char* mode, bool absolute = false);
|
|
IOStream* OpenFile(std::string path, const char* mode, bool absolute = false);
|
|
};
|
|
};
|