mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
157 lines
5.3 KiB
C#
157 lines
5.3 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
|
|
/// An object pointing to a buffer view containing the indices of deviating accessor values. The number of indices is equal to `accessor.sparse.count`. Indices **MUST** strictly increase.
|
|
/// </summary>
|
|
public partial class AccessorSparseIndices {
|
|
|
|
/// <summary>
|
|
/// Backing field for BufferView.
|
|
/// </summary>
|
|
private int m_bufferView;
|
|
|
|
/// <summary>
|
|
/// Backing field for ByteOffset.
|
|
/// </summary>
|
|
private int m_byteOffset = 0;
|
|
|
|
/// <summary>
|
|
/// Backing field for ComponentType.
|
|
/// </summary>
|
|
private ComponentTypeEnum m_componentType;
|
|
|
|
/// <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 buffer view with sparse indices. The referenced buffer view **MUST NOT** have its `target` or `byteStride` properties defined. The buffer view and the optional `byteOffset` **MUST** be aligned to the `componentType` byte length.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("bufferView")]
|
|
public 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 offset relative to the start of the buffer view in bytes.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("byteOffset")]
|
|
public int ByteOffset {
|
|
get {
|
|
return this.m_byteOffset;
|
|
}
|
|
set {
|
|
if ((value < 0)) {
|
|
throw new System.ArgumentOutOfRangeException("ByteOffset", value, "Expected value to be greater than or equal to 0");
|
|
}
|
|
this.m_byteOffset = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// The indices data type.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("componentType")]
|
|
public ComponentTypeEnum ComponentType {
|
|
get {
|
|
return this.m_componentType;
|
|
}
|
|
set {
|
|
this.m_componentType = 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 ByteOffset property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeByteOffset() {
|
|
return ((m_byteOffset == 0)
|
|
== 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);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enum part of the GLTF file schema
|
|
/// The indices data type.
|
|
/// </summary>
|
|
public enum ComponentTypeEnum {
|
|
|
|
UnsignedByte = 5121,
|
|
|
|
UnsignedShort = 5123,
|
|
|
|
UnsignedInt = 5125,
|
|
}
|
|
}
|
|
}
|