|
coastline 0.0.4
|
A glTF or GLB document with buffers joined and buffer-view offsets adjusted. More...
#include <gltfdocument.h>

Public Member Functions | |
| std::expected< std::vector< std::uint8_t >, std::string > | Image (std::size_t index) const |
Public Attributes | |
| std::filesystem::path | path |
| nlohmann::ordered_json | json |
| std::vector< std::uint8_t > | buffer |
| Decoded buffers in order, each starting on a 4-byte boundary. | |
A glTF or GLB document with buffers joined and buffer-view offsets adjusted.
| std::expected< std::vector< std::uint8_t >, std::string > coastline::GltfDocument::Image | ( | std::size_t | index | ) | const |
| index | The zero-based entry in the document's images array. |
| std::filesystem::path coastline::GltfDocument::path |
The selected document, after .gltf precedence is resolved.
| nlohmann::ordered_json coastline::GltfDocument::json |
The parsed document with consolidated buffer references.
| std::vector<std::uint8_t> coastline::GltfDocument::buffer |
Decoded buffers in order, each starting on a 4-byte boundary.