brutal/Brutal.Gltf/GltfApi/GeneratedSchema/Image.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

181 lines
5.6 KiB
C#

//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Brutal.GltfApi {
using System.Linq;
using System.Runtime.Serialization;
using System.Text.Json.Serialization;
/// <summary>
/// Object part of the GLTF file schema
/// Image data used to create a texture. Image **MAY** be referenced by an URI (or IRI) or a buffer view index.
/// </summary>
public partial class Image {
/// <summary>
/// Backing field for Uri.
/// </summary>
private string m_uri;
/// <summary>
/// Backing field for MimeType.
/// </summary>
private string m_mimeType;
/// <summary>
/// Backing field for BufferView.
/// </summary>
private System.Nullable<int> m_bufferView;
/// <summary>
/// Backing field for Name.
/// </summary>
private string m_name;
/// <summary>
/// Backing field for Extensions.
/// </summary>
private System.Collections.Generic.Dictionary<string, object> m_extensions;
/// <summary>
/// Backing field for Extras.
/// </summary>
private Extras m_extras;
/// <summary>
/// The URI (or IRI) of the image.
/// </summary>
[System.Text.Json.Serialization.JsonPropertyNameAttribute("uri")]
public string Uri {
get {
return this.m_uri;
}
set {
this.m_uri = value;
}
}
/// <summary>
/// The image's media type. This field **MUST** be defined when `bufferView` is defined.
/// </summary>
[System.Text.Json.Serialization.JsonPropertyNameAttribute("mimeType")]
public string MimeType {
get {
return this.m_mimeType;
}
set {
this.m_mimeType = value;
}
}
/// <summary>
/// The index of the bufferView that contains the image. This field **MUST NOT** be defined when `uri` is defined.
/// </summary>
[System.Text.Json.Serialization.JsonPropertyNameAttribute("bufferView")]
public System.Nullable<int> BufferView {
get {
return this.m_bufferView;
}
set {
if ((value < 0)) {
throw new System.ArgumentOutOfRangeException("BufferView", value, "Expected value to be greater than or equal to 0");
}
this.m_bufferView = value;
}
}
/// <summary>
/// The user-defined name of this object.
/// </summary>
[System.Text.Json.Serialization.JsonPropertyNameAttribute("name")]
public string Name {
get {
return this.m_name;
}
set {
this.m_name = value;
}
}
/// <summary>
/// JSON object with extension-specific objects.
/// </summary>
[System.Text.Json.Serialization.JsonPropertyNameAttribute("extensions")]
public System.Collections.Generic.Dictionary<string, object> Extensions {
get {
return this.m_extensions;
}
set {
this.m_extensions = value;
}
}
/// <summary>
/// Application-specific data.
/// </summary>
[System.Text.Json.Serialization.JsonPropertyNameAttribute("extras")]
public Extras Extras {
get {
return this.m_extras;
}
set {
this.m_extras = value;
}
}
/// <summary>
/// This method is used to determine if the Uri property should be serialized.
/// </summary>
public bool ShouldSerializeUri() {
return ((m_uri == null)
== false);
}
/// <summary>
/// This method is used to determine if the MimeType property should be serialized.
/// </summary>
public bool ShouldSerializeMimeType() {
return ((m_mimeType == null)
== false);
}
/// <summary>
/// This method is used to determine if the BufferView property should be serialized.
/// </summary>
public bool ShouldSerializeBufferView() {
return ((m_bufferView == null)
== false);
}
/// <summary>
/// This method is used to determine if the Name property should be serialized.
/// </summary>
public bool ShouldSerializeName() {
return ((m_name == null)
== false);
}
/// <summary>
/// This method is used to determine if the Extensions property should be serialized.
/// </summary>
public bool ShouldSerializeExtensions() {
return ((m_extensions == null)
== false);
}
/// <summary>
/// This method is used to determine if the Extras property should be serialized.
/// </summary>
public bool ShouldSerializeExtras() {
return ((m_extras == null)
== false);
}
}
}