mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
158 lines
5.1 KiB
C#
158 lines
5.1 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
|
|
/// A texture and its sampler.
|
|
/// </summary>
|
|
public partial class Texture {
|
|
|
|
/// <summary>
|
|
/// Backing field for Sampler.
|
|
/// </summary>
|
|
private System.Nullable<int> m_sampler;
|
|
|
|
/// <summary>
|
|
/// Backing field for Source.
|
|
/// </summary>
|
|
private System.Nullable<int> m_source;
|
|
|
|
/// <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 index of the sampler used by this texture. When undefined, a sampler with repeat wrapping and auto filtering **SHOULD** be used.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("sampler")]
|
|
public System.Nullable<int> Sampler {
|
|
get {
|
|
return this.m_sampler;
|
|
}
|
|
set {
|
|
if ((value < 0)) {
|
|
throw new System.ArgumentOutOfRangeException("Sampler", value, "Expected value to be greater than or equal to 0");
|
|
}
|
|
this.m_sampler = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// The index of the image used by this texture. When undefined, an extension or other mechanism **SHOULD** supply an alternate texture source, otherwise behavior is undefined.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("source")]
|
|
public System.Nullable<int> Source {
|
|
get {
|
|
return this.m_source;
|
|
}
|
|
set {
|
|
if ((value < 0)) {
|
|
throw new System.ArgumentOutOfRangeException("Source", value, "Expected value to be greater than or equal to 0");
|
|
}
|
|
this.m_source = 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 Sampler property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeSampler() {
|
|
return ((m_sampler == null)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the Source property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeSource() {
|
|
return ((m_source == 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);
|
|
}
|
|
}
|
|
}
|