3 #include "CesiumGltfWriter/Library.h"
5 #include <CesiumJsonWriter/ExtensionWriterContext.h>
42 bool prettyPrint =
false;
const CesiumJsonWriter::ExtensionWriterContext & getExtensions() const
Gets the context used to control how schema extensions are written.
CesiumJsonWriter::ExtensionWriterContext & getExtensions()
Gets the context used to control how schema extensions are written.
SchemaWriterResult writeSchema(const CesiumGltf::Schema &schema, const SchemaWriterOptions &options=SchemaWriterOptions()) const
Serializes the provided schema object into a byte vector using the provided flags to convert.
SchemaWriter()
Constructs a new instance.
Classes for writing glTF models.
Classes for working with glTF models.
Options for how to write a schema.
The result of writing a schema with SchemaWriterWriter::writeSchema.
std::vector< std::string > warnings
Warnings, if any, that occurred during the write process.
std::vector< std::byte > schemaBytes
The final generated std::vector<std::byte> of the schema JSON.
std::vector< std::string > errors
Errors, if any, that occurred during the write process.
An object defining classes and enums.