GLTF document load information. More...
#include <GLTFDocument.hpp>
Public Attributes | |
| const char * | FileName = nullptr |
| File name. | |
| FileExistsCallbackType | FileExistsCallback = nullptr |
| Optional callback function that will be called by the loader to check if the file exists. | |
| ReadWholeFileCallbackType | ReadWholeFileCallback = nullptr |
| Optional callback function that will be called by the loader to read the whole file. | |
| TextureCacheType * | pTextureCache = nullptr |
| Optional texture cache to use when loading images referenced by the document. | |
| ResourceManager * | pResourceManager = nullptr |
| Optional resource manager to use when loading images referenced by the document. | |
| bool | DecodeImages = true |
GLTF document load information.
| bool Diligent::GLTF::DocumentLoadInfo::DecodeImages = true |
Whether image data should be decoded into pixels while loading the document.
When this is false, the document still parses image and texture metadata. Images stored in buffer views remain addressable through tinygltf::Image::bufferView without duplicating their bytes in tinygltf::Image::image. External image files with known image extensions are not read by the document loader and remain addressable through tinygltf::Image::uri. Embedded data URI images are copied into tinygltf::Image::image as encoded image bytes because tinygltf supplies them through temporary callback storage.