//------------------------------------------------------------------------------ // // 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 /// Texture sampler properties for filtering and wrapping modes. /// public partial class Sampler { /// /// Backing field for MagFilter. /// private System.Nullable m_magFilter; /// /// Backing field for MinFilter. /// private System.Nullable m_minFilter; /// /// Backing field for WrapS. /// private WrapSEnum m_wrapS = WrapSEnum.Repeat; /// /// Backing field for WrapT. /// private WrapTEnum m_wrapT = WrapTEnum.Repeat; /// /// Backing field for Name. /// private string m_name; /// /// Backing field for Extensions. /// private System.Collections.Generic.Dictionary m_extensions; /// /// Backing field for Extras. /// private Extras m_extras; /// /// Magnification filter. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("magFilter")] public System.Nullable MagFilter { get { return this.m_magFilter; } set { this.m_magFilter = value; } } /// /// Minification filter. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("minFilter")] public System.Nullable MinFilter { get { return this.m_minFilter; } set { this.m_minFilter = value; } } /// /// S (U) wrapping mode. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("wrapS")] public WrapSEnum WrapS { get { return this.m_wrapS; } set { this.m_wrapS = value; } } /// /// T (V) wrapping mode. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("wrapT")] public WrapTEnum WrapT { get { return this.m_wrapT; } set { this.m_wrapT = value; } } /// /// The user-defined name of this object. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] public string Name { get { return this.m_name; } set { this.m_name = 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 MagFilter property should be serialized. /// public bool ShouldSerializeMagFilter() { return ((m_magFilter == null) == false); } /// /// This method is used to determine if the MinFilter property should be serialized. /// public bool ShouldSerializeMinFilter() { return ((m_minFilter == null) == false); } /// /// This method is used to determine if the WrapS property should be serialized. /// public bool ShouldSerializeWrapS() { return ((m_wrapS == WrapSEnum.Repeat) == false); } /// /// This method is used to determine if the WrapT property should be serialized. /// public bool ShouldSerializeWrapT() { return ((m_wrapT == WrapTEnum.Repeat) == false); } /// /// This method is used to determine if the Name property should be serialized. /// public bool ShouldSerializeName() { return ((m_name == null) == 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); } /// /// Enum part of the GLTF file schema /// Magnification filter. /// public enum MagFilterEnum { Nearest = 9728, Linear = 9729, } /// /// Enum part of the GLTF file schema /// Minification filter. /// public enum MinFilterEnum { Nearest = 9728, Linear = 9729, NearestMipmapNearest = 9984, LinearMipmapNearest = 9985, NearestMipmapLinear = 9986, LinearMipmapLinear = 9987, } /// /// Enum part of the GLTF file schema /// S (U) wrapping mode. /// public enum WrapSEnum { ClampToEdge = 33071, MirroredRepeat = 33648, Repeat = 10497, } /// /// Enum part of the GLTF file schema /// T (V) wrapping mode. /// public enum WrapTEnum { ClampToEdge = 33071, MirroredRepeat = 33648, Repeat = 10497, } } }