A context for writing extensions where known extensions and their handlers can be registered.
CesiumJsonWriter::ExtensionWriterContext & getExtensions()
Gets the context used to control how conditional content extensions are written.
const CesiumJsonWriter::ExtensionWriterContext & getExtensions() const
Gets the context used to control how conditional content extensions are written.
ConditionalContentWriterResult writeConditionalContent(const CesiumTilesetJson::ConditionalContent &conditionalContent, const ConditionalContentWriterOptions &options=ConditionalContentWriterOptions()) const
Serializes the provided conditional content object into a byte vector using the provided flags to con...
ConditionalContentWriter()
Constructs a new instance.
Options for how to write a CesiumTilesetJson::ConditionalContent.
bool prettyPrint
If the conditional content JSON should be pretty printed.
The result of writing a CesiumTilesetJson::ConditionalContent with ConditionalContentWriter::writeCon...
std::vector< std::string > warnings
Warnings, if any, that occurred during the write process.
std::vector< std::byte > conditionalContentBytes
The final generated std::vector<std::byte> of the conditional content JSON.
std::vector< std::string > errors
Errors, if any, that occurred during the write process.
Defines the structure of 3D Tiles content for the 3DTILES_content_conditional extension.