//------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ namespace Brutal.GltfApi { using System.Linq; using System.Runtime.Serialization; using System.Text.Json.Serialization; /// /// Object part of the GLTF file schema /// Reference to a texture. /// public partial class TextureInfo { /// /// Backing field for Index. /// private int m_index; /// /// Backing field for TexCoord. /// private int m_texCoord = 0; /// /// Backing field for Extensions. /// private System.Collections.Generic.Dictionary m_extensions; /// /// Backing field for Extras. /// private Extras m_extras; /// /// The index of the texture. /// [System.Text.Json.Serialization.JsonRequiredAttribute()] [System.Text.Json.Serialization.JsonPropertyNameAttribute("index")] public int Index { get { return this.m_index; } set { if ((value < 0)) { throw new System.ArgumentOutOfRangeException("Index", value, "Expected value to be greater than or equal to 0"); } this.m_index = value; } } /// /// The set index of texture's TEXCOORD attribute used for texture coordinate mapping. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("texCoord")] public int TexCoord { get { return this.m_texCoord; } set { if ((value < 0)) { throw new System.ArgumentOutOfRangeException("TexCoord", value, "Expected value to be greater than or equal to 0"); } this.m_texCoord = value; } } /// /// JSON object with extension-specific objects. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("extensions")] public System.Collections.Generic.Dictionary Extensions { get { return this.m_extensions; } set { this.m_extensions = value; } } /// /// Application-specific data. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("extras")] public Extras Extras { get { return this.m_extras; } set { this.m_extras = value; } } /// /// This method is used to determine if the TexCoord property should be serialized. /// public bool ShouldSerializeTexCoord() { return ((m_texCoord == 0) == false); } /// /// This method is used to determine if the Extensions property should be serialized. /// public bool ShouldSerializeExtensions() { return ((m_extensions == null) == false); } /// /// This method is used to determine if the Extras property should be serialized. /// public bool ShouldSerializeExtras() { return ((m_extras == null) == false); } } }