Class WriteContext

WriteContext class

Configuration settings for writing model files.

public class WriteContext : WriteSettings

Properties

NameDescription
BuffersMaxSize { get; set; }Gets or sets the size used to split all the resources into individual buffers.
CurrentDirectory { get; }
ImageWriteCallback { get; set; }Gets or sets a callback hook that controls the image writing behavior.
ImageWriting { get; set; }Gets or sets a value indicating how to write the images of the model.
JsonIndented { get; set; }Gets or sets a value indicating whether the JSON formatting will include indentation.
JsonOptions { get; set; }Gets or sets a value indicating the Json options to be used for writing.
JsonPostprocessor { get; set; }Gets or sets the callback used to postprocess the json text before parsing it.
MergeBuffers { get; set; }Gets or sets a value indicating whether to merge all the buffers in !:GlbImage.LogicalBuffers into a single buffer.
Validation { get; set; }Gets or sets a value indicating the level of validation applied when loading a file.

Methods

NameDescription
static Create(FileWriterCallback)
static CreateFromDictionary(IDictionary<string, ArraySegment<byte>>)
static CreateFromDirectory(DirectoryInfo)
static CreateFromFile(string)
static CreateFromStream(Stream)
CopyTo(WriteSettings)
WithBinarySettings()
WithSettingsFrom(WriteSettings)
WithTextSettings()
WriteAllBytesToEnd(string, ArraySegment<byte>)
WriteBinarySchema2(Stream, GlbData)
WriteBinarySchema2(string, GlbData)Writes model to this context using the GLB binary container.
WriteImage(string, MemoryImage)
WriteTextSchema2(string, GlbData)Writes model to this context using the glTF json container.
WriteTextSchema2(Stream, Stream, string, GlbData)Writes model to this context using the glTF json container.

See Also