3 #include "CesiumGltfWriter/Library.h"
5 #include <CesiumJsonWriter/ExtensionWriterContext.h>
45 bool prettyPrint =
false;
51 size_t binaryChunkByteAlignment = 4;
105 const gsl::span<const std::byte>& bufferData,
GltfWriterResult writeGlb(const CesiumGltf::Model &model, const gsl::span< const std::byte > &bufferData, const GltfWriterOptions &options=GltfWriterOptions()) const
Serializes the provided model into a glb byte vector.
GltfWriter()
Constructs a new instance.
GltfWriterResult writeGltf(const CesiumGltf::Model &model, const GltfWriterOptions &options=GltfWriterOptions()) const
Serializes the provided model into a glTF JSON byte vector.
const CesiumJsonWriter::ExtensionWriterContext & getExtensions() const
Gets the context used to control how glTF extensions are written.
CesiumJsonWriter::ExtensionWriterContext & getExtensions()
Gets the context used to control how glTF extensions are written.
Classes for writing glTF models.
Classes for working with glTF models.
Options for how to write a glTF.
The result of writing a glTF with GltfWriter::writeGltf or GltfWriter::writeGlb.
std::vector< std::string > errors
Errors, if any, that occurred during the write process.
std::vector< std::string > warnings
Warnings, if any, that occurred during the write process.
std::vector< std::byte > gltfBytes
The final generated std::vector<std::byte> of the glTF or glb.
The root object for a glTF asset.