9#include <nlohmann/json.hpp>
16 nlohmann::ordered_json
json;
Definition assetimport.h:11
std::expected< GltfDocument, std::string > ReadGltfDocument(const std::filesystem::path &path)
Read a model or image-override document.
A glTF or GLB document with buffers joined and buffer-view offsets adjusted.
Definition gltfdocument.h:14
std::expected< std::vector< std::uint8_t >, std::string > Image(std::size_t index) const
nlohmann::ordered_json json
Definition gltfdocument.h:16
std::filesystem::path path
Definition gltfdocument.h:15
std::vector< std::uint8_t > buffer
Decoded buffers in order, each starting on a 4-byte boundary.
Definition gltfdocument.h:18