mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
58 changed files with 768360 additions and 0 deletions
1
brutal.gltf/Brutal.Gltf/GlobalUsings.cs
Normal file
1
brutal.gltf/Brutal.Gltf/GlobalUsings.cs
Normal file
|
|
@ -0,0 +1 @@
|
|||
global using Brutal.Numerics;
|
||||
35
brutal.gltf/Brutal.Gltf/GltfApi/Accessor.cs
Normal file
35
brutal.gltf/Brutal.Gltf/GltfApi/Accessor.cs
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
namespace Brutal.GltfApi;
|
||||
|
||||
public partial class Accessor
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the size in bytes of a single element of this accessor
|
||||
/// </summary>
|
||||
/// <returns>Size in bytes of accessor element, accounting for component type, and it's vector element count</returns>
|
||||
/// <exception cref="InvalidOperationException">Unsupported type</exception>
|
||||
public ByteSize ElementSize()
|
||||
{
|
||||
var componentSize = ComponentType switch
|
||||
{
|
||||
ComponentTypeEnum.Byte => 1,
|
||||
ComponentTypeEnum.UnsignedByte => 1,
|
||||
ComponentTypeEnum.Short => 2,
|
||||
ComponentTypeEnum.UnsignedShort => 2,
|
||||
ComponentTypeEnum.UnsignedInt => 4,
|
||||
ComponentTypeEnum.Float => 4,
|
||||
_ => throw new InvalidOperationException($"Unsupported component type {ComponentType}"),
|
||||
};
|
||||
var typeCount = Type switch
|
||||
{
|
||||
TypeEnum.Scalar => 1,
|
||||
TypeEnum.Vec2 => 2,
|
||||
TypeEnum.Vec3 => 3,
|
||||
TypeEnum.Vec4 => 4,
|
||||
TypeEnum.Mat2 => 4,
|
||||
TypeEnum.Mat3 => 9,
|
||||
TypeEnum.Mat4 => 16,
|
||||
_ => throw new InvalidOperationException($"Unsupported accessor type {Type}"),
|
||||
};
|
||||
return ByteSize.Of(componentSize * typeCount);
|
||||
}
|
||||
}
|
||||
383
brutal.gltf/Brutal.Gltf/GltfApi/GeneratedSchema/Accessor.gen.cs
Normal file
383
brutal.gltf/Brutal.Gltf/GltfApi/GeneratedSchema/Accessor.gen.cs
Normal file
|
|
@ -0,0 +1,383 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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 typed view into a buffer view that contains raw binary data.
|
||||
/// </summary>
|
||||
public partial class Accessor {
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for BufferView.
|
||||
/// </summary>
|
||||
private System.Nullable<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 Normalized.
|
||||
/// </summary>
|
||||
private bool m_normalized = false;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Count.
|
||||
/// </summary>
|
||||
private int m_count;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Type.
|
||||
/// </summary>
|
||||
private TypeEnum m_type;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Max.
|
||||
/// </summary>
|
||||
private float[] m_max;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Min.
|
||||
/// </summary>
|
||||
private float[] m_min;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Sparse.
|
||||
/// </summary>
|
||||
private AccessorSparse m_sparse;
|
||||
|
||||
/// <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 bufferView.
|
||||
/// </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 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 datatype of the accessor's components.
|
||||
/// </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>
|
||||
/// Specifies whether integer data values are normalized before usage.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("normalized")]
|
||||
public bool Normalized {
|
||||
get {
|
||||
return this.m_normalized;
|
||||
}
|
||||
set {
|
||||
this.m_normalized = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The number of elements referenced by this accessor.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("count")]
|
||||
public int Count {
|
||||
get {
|
||||
return this.m_count;
|
||||
}
|
||||
set {
|
||||
if ((value < 1)) {
|
||||
throw new System.ArgumentOutOfRangeException("Count", value, "Expected value to be greater than or equal to 1");
|
||||
}
|
||||
this.m_count = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Specifies if the accessor's elements are scalars, vectors, or matrices.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonConverterAttribute(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))]
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("type")]
|
||||
public TypeEnum Type {
|
||||
get {
|
||||
return this.m_type;
|
||||
}
|
||||
set {
|
||||
this.m_type = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Maximum value of each component in this accessor.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("max")]
|
||||
public float[] Max {
|
||||
get {
|
||||
return this.m_max;
|
||||
}
|
||||
set {
|
||||
if ((value == null)) {
|
||||
this.m_max = value;
|
||||
return;
|
||||
}
|
||||
if ((value.Length < 1u)) {
|
||||
throw new System.ArgumentException("Array not long enough");
|
||||
}
|
||||
if ((value.Length > 16u)) {
|
||||
throw new System.ArgumentException("Array too long");
|
||||
}
|
||||
this.m_max = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Minimum value of each component in this accessor.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("min")]
|
||||
public float[] Min {
|
||||
get {
|
||||
return this.m_min;
|
||||
}
|
||||
set {
|
||||
if ((value == null)) {
|
||||
this.m_min = value;
|
||||
return;
|
||||
}
|
||||
if ((value.Length < 1u)) {
|
||||
throw new System.ArgumentException("Array not long enough");
|
||||
}
|
||||
if ((value.Length > 16u)) {
|
||||
throw new System.ArgumentException("Array too long");
|
||||
}
|
||||
this.m_min = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sparse storage of elements that deviate from their initialization value.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("sparse")]
|
||||
public AccessorSparse Sparse {
|
||||
get {
|
||||
return this.m_sparse;
|
||||
}
|
||||
set {
|
||||
this.m_sparse = 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 BufferView property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeBufferView() {
|
||||
return ((m_bufferView == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <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 Normalized property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeNormalized() {
|
||||
return ((m_normalized == false)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Max property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeMax() {
|
||||
return ((m_max == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Min property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeMin() {
|
||||
return ((m_min == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Sparse property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeSparse() {
|
||||
return ((m_sparse == 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Enum part of the GLTF file schema
|
||||
/// The datatype of the accessor's components.
|
||||
/// </summary>
|
||||
public enum ComponentTypeEnum {
|
||||
|
||||
Byte = 5120,
|
||||
|
||||
UnsignedByte = 5121,
|
||||
|
||||
Short = 5122,
|
||||
|
||||
UnsignedShort = 5123,
|
||||
|
||||
UnsignedInt = 5125,
|
||||
|
||||
Float = 5126,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Enum part of the GLTF file schema
|
||||
/// Specifies if the accessor's elements are scalars, vectors, or matrices.
|
||||
/// </summary>
|
||||
public enum TypeEnum {
|
||||
|
||||
Scalar,
|
||||
|
||||
Vec2,
|
||||
|
||||
Vec3,
|
||||
|
||||
Vec4,
|
||||
|
||||
Mat2,
|
||||
|
||||
Mat3,
|
||||
|
||||
Mat4,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,150 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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
|
||||
/// Sparse storage of accessor values that deviate from their initialization value.
|
||||
/// </summary>
|
||||
public partial class AccessorSparse {
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Count.
|
||||
/// </summary>
|
||||
private int m_count;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Indices.
|
||||
/// </summary>
|
||||
private AccessorSparseIndices m_indices;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Values.
|
||||
/// </summary>
|
||||
private AccessorSparseValues m_values;
|
||||
|
||||
/// <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>
|
||||
/// Number of deviating accessor values stored in the sparse array.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("count")]
|
||||
public int Count {
|
||||
get {
|
||||
return this.m_count;
|
||||
}
|
||||
set {
|
||||
if ((value < 1)) {
|
||||
throw new System.ArgumentOutOfRangeException("Count", value, "Expected value to be greater than or equal to 1");
|
||||
}
|
||||
this.m_count = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An object pointing to a buffer view containing the indices of deviating accessor values. The number of indices is equal to `count`. Indices **MUST** strictly increase.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("indices")]
|
||||
public AccessorSparseIndices Indices {
|
||||
get {
|
||||
return this.m_indices;
|
||||
}
|
||||
set {
|
||||
this.m_indices = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An object pointing to a buffer view containing the deviating accessor values.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("values")]
|
||||
public AccessorSparseValues Values {
|
||||
get {
|
||||
return this.m_values;
|
||||
}
|
||||
set {
|
||||
this.m_values = 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 Indices property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeIndices() {
|
||||
return ((m_indices == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Values property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeValues() {
|
||||
return ((m_values == 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,157 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,125 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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 deviating accessor values. The number of elements is equal to `accessor.sparse.count` times number of components. The elements have the same component type as the base accessor. The elements are tightly packed. Data **MUST** be aligned following the same rules as the base accessor.
|
||||
/// </summary>
|
||||
public partial class AccessorSparseValues {
|
||||
|
||||
/// <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 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 bufferView with sparse values. The referenced buffer view **MUST NOT** have its `target` or `byteStride` properties defined.
|
||||
/// </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 bufferView 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>
|
||||
/// 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
168
brutal.gltf/Brutal.Gltf/GltfApi/GeneratedSchema/Animation.gen.cs
Normal file
168
brutal.gltf/Brutal.Gltf/GltfApi/GeneratedSchema/Animation.gen.cs
Normal file
|
|
@ -0,0 +1,168 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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 keyframe animation.
|
||||
/// </summary>
|
||||
public partial class Animation {
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Channels.
|
||||
/// </summary>
|
||||
private AnimationChannel[] m_channels;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Samplers.
|
||||
/// </summary>
|
||||
private AnimationSampler[] m_samplers;
|
||||
|
||||
/// <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>
|
||||
/// An array of animation channels. An animation channel combines an animation sampler with a target property being animated. Different channels of the same animation **MUST NOT** have the same targets.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("channels")]
|
||||
public AnimationChannel[] Channels {
|
||||
get {
|
||||
return this.m_channels;
|
||||
}
|
||||
set {
|
||||
if ((value == null)) {
|
||||
this.m_channels = value;
|
||||
return;
|
||||
}
|
||||
if ((value.Length < 1u)) {
|
||||
throw new System.ArgumentException("Array not long enough");
|
||||
}
|
||||
this.m_channels = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An array of animation samplers. An animation sampler combines timestamps with a sequence of output values and defines an interpolation algorithm.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("samplers")]
|
||||
public AnimationSampler[] Samplers {
|
||||
get {
|
||||
return this.m_samplers;
|
||||
}
|
||||
set {
|
||||
if ((value == null)) {
|
||||
this.m_samplers = value;
|
||||
return;
|
||||
}
|
||||
if ((value.Length < 1u)) {
|
||||
throw new System.ArgumentException("Array not long enough");
|
||||
}
|
||||
this.m_samplers = 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 Channels property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeChannels() {
|
||||
return ((m_channels == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Samplers property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeSamplers() {
|
||||
return ((m_samplers == 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,123 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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 animation channel combines an animation sampler with a target property being animated.
|
||||
/// </summary>
|
||||
public partial class AnimationChannel {
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Sampler.
|
||||
/// </summary>
|
||||
private int m_sampler;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Target.
|
||||
/// </summary>
|
||||
private AnimationChannelTarget m_target;
|
||||
|
||||
/// <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 a sampler in this animation used to compute the value for the target.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("sampler")]
|
||||
public 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 descriptor of the animated property.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("target")]
|
||||
public AnimationChannelTarget Target {
|
||||
get {
|
||||
return this.m_target;
|
||||
}
|
||||
set {
|
||||
this.m_target = 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 Target property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeTarget() {
|
||||
return ((m_target == 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,138 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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
|
||||
/// The descriptor of the animated property.
|
||||
/// </summary>
|
||||
public partial class AnimationChannelTarget {
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Node.
|
||||
/// </summary>
|
||||
private System.Nullable<int> m_node;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Path.
|
||||
/// </summary>
|
||||
private PathEnum m_path;
|
||||
|
||||
/// <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 node to animate. When undefined, the animated object **MAY** be defined by an extension.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("node")]
|
||||
public System.Nullable<int> Node {
|
||||
get {
|
||||
return this.m_node;
|
||||
}
|
||||
set {
|
||||
if ((value < 0)) {
|
||||
throw new System.ArgumentOutOfRangeException("Node", value, "Expected value to be greater than or equal to 0");
|
||||
}
|
||||
this.m_node = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The name of the node's TRS property to animate, or the `"weights"` of the Morph Targets it instantiates. For the `"translation"` property, the values that are provided by the sampler are the translation along the X, Y, and Z axes. For the `"rotation"` property, the values are a quaternion in the order (x, y, z, w), where w is the scalar. For the `"scale"` property, the values are the scaling factors along the X, Y, and Z axes.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonConverterAttribute(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))]
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("path")]
|
||||
public PathEnum Path {
|
||||
get {
|
||||
return this.m_path;
|
||||
}
|
||||
set {
|
||||
this.m_path = 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 Node property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeNode() {
|
||||
return ((m_node == 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Enum part of the GLTF file schema
|
||||
/// The name of the node's TRS property to animate, or the `"weights"` of the Morph Targets it instantiates. For the `"translation"` property, the values that are provided by the sampler are the translation along the X, Y, and Z axes. For the `"rotation"` property, the values are a quaternion in the order (x, y, z, w), where w is the scalar. For the `"scale"` property, the values are the scaling factors along the X, Y, and Z axes.
|
||||
/// </summary>
|
||||
public enum PathEnum {
|
||||
|
||||
Translation,
|
||||
|
||||
Rotation,
|
||||
|
||||
Scale,
|
||||
|
||||
Weights,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,158 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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 animation sampler combines timestamps with a sequence of output values and defines an interpolation algorithm.
|
||||
/// </summary>
|
||||
public partial class AnimationSampler {
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Input.
|
||||
/// </summary>
|
||||
private int m_input;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Interpolation.
|
||||
/// </summary>
|
||||
private InterpolationEnum m_interpolation = InterpolationEnum.Linear;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Output.
|
||||
/// </summary>
|
||||
private int m_output;
|
||||
|
||||
/// <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 an accessor containing keyframe timestamps.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("input")]
|
||||
public int Input {
|
||||
get {
|
||||
return this.m_input;
|
||||
}
|
||||
set {
|
||||
if ((value < 0)) {
|
||||
throw new System.ArgumentOutOfRangeException("Input", value, "Expected value to be greater than or equal to 0");
|
||||
}
|
||||
this.m_input = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Interpolation algorithm.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonConverterAttribute(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("interpolation")]
|
||||
public InterpolationEnum Interpolation {
|
||||
get {
|
||||
return this.m_interpolation;
|
||||
}
|
||||
set {
|
||||
this.m_interpolation = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The index of an accessor, containing keyframe output values.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("output")]
|
||||
public int Output {
|
||||
get {
|
||||
return this.m_output;
|
||||
}
|
||||
set {
|
||||
if ((value < 0)) {
|
||||
throw new System.ArgumentOutOfRangeException("Output", value, "Expected value to be greater than or equal to 0");
|
||||
}
|
||||
this.m_output = 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 Interpolation property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeInterpolation() {
|
||||
return ((m_interpolation == InterpolationEnum.Linear)
|
||||
== 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
|
||||
/// Interpolation algorithm.
|
||||
/// </summary>
|
||||
public enum InterpolationEnum {
|
||||
|
||||
Linear,
|
||||
|
||||
Step,
|
||||
|
||||
Cubicspline,
|
||||
}
|
||||
}
|
||||
}
|
||||
179
brutal.gltf/Brutal.Gltf/GltfApi/GeneratedSchema/Asset.gen.cs
Normal file
179
brutal.gltf/Brutal.Gltf/GltfApi/GeneratedSchema/Asset.gen.cs
Normal file
|
|
@ -0,0 +1,179 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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
|
||||
/// Metadata about the glTF asset.
|
||||
/// </summary>
|
||||
public partial class Asset {
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Copyright.
|
||||
/// </summary>
|
||||
private string m_copyright;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Generator.
|
||||
/// </summary>
|
||||
private string m_generator;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Version.
|
||||
/// </summary>
|
||||
private string m_version;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for MinVersion.
|
||||
/// </summary>
|
||||
private string m_minVersion;
|
||||
|
||||
/// <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>
|
||||
/// A copyright message suitable for display to credit the content creator.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("copyright")]
|
||||
public string Copyright {
|
||||
get {
|
||||
return this.m_copyright;
|
||||
}
|
||||
set {
|
||||
this.m_copyright = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Tool that generated this glTF model. Useful for debugging.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("generator")]
|
||||
public string Generator {
|
||||
get {
|
||||
return this.m_generator;
|
||||
}
|
||||
set {
|
||||
this.m_generator = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The glTF version in the form of `major.minor` that this asset targets.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("version")]
|
||||
public string Version {
|
||||
get {
|
||||
return this.m_version;
|
||||
}
|
||||
set {
|
||||
this.m_version = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The minimum glTF version in the form of `major.minor` that this asset targets. This property **MUST NOT** be greater than the asset version.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("minVersion")]
|
||||
public string MinVersion {
|
||||
get {
|
||||
return this.m_minVersion;
|
||||
}
|
||||
set {
|
||||
this.m_minVersion = 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 Copyright property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeCopyright() {
|
||||
return ((m_copyright == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Generator property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeGenerator() {
|
||||
return ((m_generator == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Version property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeVersion() {
|
||||
return ((m_version == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the MinVersion property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeMinVersion() {
|
||||
return ((m_minVersion == 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
148
brutal.gltf/Brutal.Gltf/GltfApi/GeneratedSchema/Buffer.gen.cs
Normal file
148
brutal.gltf/Brutal.Gltf/GltfApi/GeneratedSchema/Buffer.gen.cs
Normal file
|
|
@ -0,0 +1,148 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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 buffer points to binary geometry, animation, or skins.
|
||||
/// </summary>
|
||||
public partial class Buffer {
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Uri.
|
||||
/// </summary>
|
||||
private string m_uri;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for ByteLength.
|
||||
/// </summary>
|
||||
private int m_byteLength;
|
||||
|
||||
/// <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 buffer.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("uri")]
|
||||
public string Uri {
|
||||
get {
|
||||
return this.m_uri;
|
||||
}
|
||||
set {
|
||||
this.m_uri = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The length of the buffer in bytes.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("byteLength")]
|
||||
public int ByteLength {
|
||||
get {
|
||||
return this.m_byteLength;
|
||||
}
|
||||
set {
|
||||
if ((value < 1)) {
|
||||
throw new System.ArgumentOutOfRangeException("ByteLength", value, "Expected value to be greater than or equal to 1");
|
||||
}
|
||||
this.m_byteLength = 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 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,242 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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 view into a buffer generally representing a subset of the buffer.
|
||||
/// </summary>
|
||||
public partial class BufferView {
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Buffer.
|
||||
/// </summary>
|
||||
private int m_buffer;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for ByteOffset.
|
||||
/// </summary>
|
||||
private int m_byteOffset = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for ByteLength.
|
||||
/// </summary>
|
||||
private int m_byteLength;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for ByteStride.
|
||||
/// </summary>
|
||||
private System.Nullable<int> m_byteStride;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Target.
|
||||
/// </summary>
|
||||
private System.Nullable<TargetEnum> m_target;
|
||||
|
||||
/// <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 buffer.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("buffer")]
|
||||
public int Buffer {
|
||||
get {
|
||||
return this.m_buffer;
|
||||
}
|
||||
set {
|
||||
if ((value < 0)) {
|
||||
throw new System.ArgumentOutOfRangeException("Buffer", value, "Expected value to be greater than or equal to 0");
|
||||
}
|
||||
this.m_buffer = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The offset into the buffer 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 length of the bufferView in bytes.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("byteLength")]
|
||||
public int ByteLength {
|
||||
get {
|
||||
return this.m_byteLength;
|
||||
}
|
||||
set {
|
||||
if ((value < 1)) {
|
||||
throw new System.ArgumentOutOfRangeException("ByteLength", value, "Expected value to be greater than or equal to 1");
|
||||
}
|
||||
this.m_byteLength = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The stride, in bytes.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("byteStride")]
|
||||
public System.Nullable<int> ByteStride {
|
||||
get {
|
||||
return this.m_byteStride;
|
||||
}
|
||||
set {
|
||||
if ((value < 4)) {
|
||||
throw new System.ArgumentOutOfRangeException("ByteStride", value, "Expected value to be greater than or equal to 4");
|
||||
}
|
||||
if ((value > 252)) {
|
||||
throw new System.ArgumentOutOfRangeException("ByteStride", value, "Expected value to be less than or equal to 252");
|
||||
}
|
||||
this.m_byteStride = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The hint representing the intended GPU buffer type to use with this buffer view.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("target")]
|
||||
public System.Nullable<TargetEnum> Target {
|
||||
get {
|
||||
return this.m_target;
|
||||
}
|
||||
set {
|
||||
this.m_target = 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 ByteOffset property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeByteOffset() {
|
||||
return ((m_byteOffset == 0)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the ByteStride property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeByteStride() {
|
||||
return ((m_byteStride == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Target property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeTarget() {
|
||||
return ((m_target == 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Enum part of the GLTF file schema
|
||||
/// The hint representing the intended GPU buffer type to use with this buffer view.
|
||||
/// </summary>
|
||||
public enum TargetEnum {
|
||||
|
||||
ArrayBuffer = 34962,
|
||||
|
||||
ElementArrayBuffer = 34963,
|
||||
}
|
||||
}
|
||||
}
|
||||
183
brutal.gltf/Brutal.Gltf/GltfApi/GeneratedSchema/Camera.gen.cs
Normal file
183
brutal.gltf/Brutal.Gltf/GltfApi/GeneratedSchema/Camera.gen.cs
Normal file
|
|
@ -0,0 +1,183 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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 camera's projection. A node **MAY** reference a camera to apply a transform to place the camera in the scene.
|
||||
/// </summary>
|
||||
public partial class Camera {
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Orthographic.
|
||||
/// </summary>
|
||||
private CameraOrthographic m_orthographic;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Perspective.
|
||||
/// </summary>
|
||||
private CameraPerspective m_perspective;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Type.
|
||||
/// </summary>
|
||||
private TypeEnum m_type;
|
||||
|
||||
/// <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>
|
||||
/// An orthographic camera containing properties to create an orthographic projection matrix. This property **MUST NOT** be defined when `perspective` is defined.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("orthographic")]
|
||||
public CameraOrthographic Orthographic {
|
||||
get {
|
||||
return this.m_orthographic;
|
||||
}
|
||||
set {
|
||||
this.m_orthographic = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A perspective camera containing properties to create a perspective projection matrix. This property **MUST NOT** be defined when `orthographic` is defined.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("perspective")]
|
||||
public CameraPerspective Perspective {
|
||||
get {
|
||||
return this.m_perspective;
|
||||
}
|
||||
set {
|
||||
this.m_perspective = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Specifies if the camera uses a perspective or orthographic projection.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonConverterAttribute(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))]
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("type")]
|
||||
public TypeEnum Type {
|
||||
get {
|
||||
return this.m_type;
|
||||
}
|
||||
set {
|
||||
this.m_type = 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 Orthographic property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeOrthographic() {
|
||||
return ((m_orthographic == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Perspective property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializePerspective() {
|
||||
return ((m_perspective == 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Enum part of the GLTF file schema
|
||||
/// Specifies if the camera uses a perspective or orthographic projection.
|
||||
/// </summary>
|
||||
public enum TypeEnum {
|
||||
|
||||
Perspective,
|
||||
|
||||
Orthographic,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,156 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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 orthographic camera containing properties to create an orthographic projection matrix.
|
||||
/// </summary>
|
||||
public partial class CameraOrthographic {
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Xmag.
|
||||
/// </summary>
|
||||
private float m_xmag;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Ymag.
|
||||
/// </summary>
|
||||
private float m_ymag;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Zfar.
|
||||
/// </summary>
|
||||
private float m_zfar;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Znear.
|
||||
/// </summary>
|
||||
private float m_znear;
|
||||
|
||||
/// <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 floating-point horizontal magnification of the view. This value **MUST NOT** be equal to zero. This value **SHOULD NOT** be negative.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("xmag")]
|
||||
public float Xmag {
|
||||
get {
|
||||
return this.m_xmag;
|
||||
}
|
||||
set {
|
||||
this.m_xmag = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The floating-point vertical magnification of the view. This value **MUST NOT** be equal to zero. This value **SHOULD NOT** be negative.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("ymag")]
|
||||
public float Ymag {
|
||||
get {
|
||||
return this.m_ymag;
|
||||
}
|
||||
set {
|
||||
this.m_ymag = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The floating-point distance to the far clipping plane. This value **MUST NOT** be equal to zero. `zfar` **MUST** be greater than `znear`.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("zfar")]
|
||||
public float Zfar {
|
||||
get {
|
||||
return this.m_zfar;
|
||||
}
|
||||
set {
|
||||
if ((value <= 0D)) {
|
||||
throw new System.ArgumentOutOfRangeException("Zfar", value, "Expected value to be greater than 0");
|
||||
}
|
||||
this.m_zfar = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The floating-point distance to the near clipping plane.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("znear")]
|
||||
public float Znear {
|
||||
get {
|
||||
return this.m_znear;
|
||||
}
|
||||
set {
|
||||
if ((value < 0D)) {
|
||||
throw new System.ArgumentOutOfRangeException("Znear", value, "Expected value to be greater than or equal to 0");
|
||||
}
|
||||
this.m_znear = 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 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,176 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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 perspective camera containing properties to create a perspective projection matrix.
|
||||
/// </summary>
|
||||
public partial class CameraPerspective {
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for AspectRatio.
|
||||
/// </summary>
|
||||
private System.Nullable<float> m_aspectRatio;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Yfov.
|
||||
/// </summary>
|
||||
private float m_yfov;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Zfar.
|
||||
/// </summary>
|
||||
private System.Nullable<float> m_zfar;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Znear.
|
||||
/// </summary>
|
||||
private float m_znear;
|
||||
|
||||
/// <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 floating-point aspect ratio of the field of view.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("aspectRatio")]
|
||||
public System.Nullable<float> AspectRatio {
|
||||
get {
|
||||
return this.m_aspectRatio;
|
||||
}
|
||||
set {
|
||||
if ((value <= 0D)) {
|
||||
throw new System.ArgumentOutOfRangeException("AspectRatio", value, "Expected value to be greater than 0");
|
||||
}
|
||||
this.m_aspectRatio = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The floating-point vertical field of view in radians. This value **SHOULD** be less than π.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("yfov")]
|
||||
public float Yfov {
|
||||
get {
|
||||
return this.m_yfov;
|
||||
}
|
||||
set {
|
||||
if ((value <= 0D)) {
|
||||
throw new System.ArgumentOutOfRangeException("Yfov", value, "Expected value to be greater than 0");
|
||||
}
|
||||
this.m_yfov = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The floating-point distance to the far clipping plane.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("zfar")]
|
||||
public System.Nullable<float> Zfar {
|
||||
get {
|
||||
return this.m_zfar;
|
||||
}
|
||||
set {
|
||||
if ((value <= 0D)) {
|
||||
throw new System.ArgumentOutOfRangeException("Zfar", value, "Expected value to be greater than 0");
|
||||
}
|
||||
this.m_zfar = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The floating-point distance to the near clipping plane.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("znear")]
|
||||
public float Znear {
|
||||
get {
|
||||
return this.m_znear;
|
||||
}
|
||||
set {
|
||||
if ((value <= 0D)) {
|
||||
throw new System.ArgumentOutOfRangeException("Znear", value, "Expected value to be greater than 0");
|
||||
}
|
||||
this.m_znear = 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 AspectRatio property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeAspectRatio() {
|
||||
return ((m_aspectRatio == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Zfar property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeZfar() {
|
||||
return ((m_zfar == 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,123 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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
|
||||
/// Sourced from the 'KHR_draco_mesh_compression' extension
|
||||
/// </summary>
|
||||
public partial class DracoMeshCompressionGltfMeshPrimitiveExtension {
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for BufferView.
|
||||
/// </summary>
|
||||
private int m_bufferView;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Attributes.
|
||||
/// </summary>
|
||||
private System.Collections.Generic.Dictionary<string, int> m_attributes;
|
||||
|
||||
/// <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 bufferView.
|
||||
/// </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>
|
||||
/// A dictionary object, where each key corresponds to an attribute and its unique attribute id stored in the compressed geometry.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("attributes")]
|
||||
public System.Collections.Generic.Dictionary<string, int> Attributes {
|
||||
get {
|
||||
return this.m_attributes;
|
||||
}
|
||||
set {
|
||||
this.m_attributes = 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 Attributes property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeAttributes() {
|
||||
return ((m_attributes == 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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
|
||||
/// JSON object with extension-specific objects.
|
||||
/// </summary>
|
||||
public partial class Extension {
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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
|
||||
/// Application-specific data.
|
||||
/// </summary>
|
||||
public partial class Extras {
|
||||
}
|
||||
}
|
||||
625
brutal.gltf/Brutal.Gltf/GltfApi/GeneratedSchema/Gltf.gen.cs
Normal file
625
brutal.gltf/Brutal.Gltf/GltfApi/GeneratedSchema/Gltf.gen.cs
Normal file
|
|
@ -0,0 +1,625 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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
|
||||
/// The root object for a glTF asset.
|
||||
/// </summary>
|
||||
public partial class Gltf {
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for ExtensionsUsed.
|
||||
/// </summary>
|
||||
private string[] m_extensionsUsed;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for ExtensionsRequired.
|
||||
/// </summary>
|
||||
private string[] m_extensionsRequired;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Accessors.
|
||||
/// </summary>
|
||||
private Accessor[] m_accessors;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Animations.
|
||||
/// </summary>
|
||||
private Animation[] m_animations;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Asset.
|
||||
/// </summary>
|
||||
private Asset m_asset;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Buffers.
|
||||
/// </summary>
|
||||
private Buffer[] m_buffers;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for BufferViews.
|
||||
/// </summary>
|
||||
private BufferView[] m_bufferViews;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Cameras.
|
||||
/// </summary>
|
||||
private Camera[] m_cameras;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Images.
|
||||
/// </summary>
|
||||
private Image[] m_images;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Materials.
|
||||
/// </summary>
|
||||
private Material[] m_materials;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Meshes.
|
||||
/// </summary>
|
||||
private Mesh[] m_meshes;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Nodes.
|
||||
/// </summary>
|
||||
private Node[] m_nodes;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Samplers.
|
||||
/// </summary>
|
||||
private Sampler[] m_samplers;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Scene.
|
||||
/// </summary>
|
||||
private System.Nullable<int> m_scene;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Scenes.
|
||||
/// </summary>
|
||||
private Scene[] m_scenes;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Skins.
|
||||
/// </summary>
|
||||
private Skin[] m_skins;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Textures.
|
||||
/// </summary>
|
||||
private Texture[] m_textures;
|
||||
|
||||
/// <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>
|
||||
/// Names of glTF extensions used in this asset.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("extensionsUsed")]
|
||||
public string[] ExtensionsUsed {
|
||||
get {
|
||||
return this.m_extensionsUsed;
|
||||
}
|
||||
set {
|
||||
if ((value == null)) {
|
||||
this.m_extensionsUsed = value;
|
||||
return;
|
||||
}
|
||||
if ((value.Length < 1u)) {
|
||||
throw new System.ArgumentException("Array not long enough");
|
||||
}
|
||||
this.m_extensionsUsed = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Names of glTF extensions required to properly load this asset.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("extensionsRequired")]
|
||||
public string[] ExtensionsRequired {
|
||||
get {
|
||||
return this.m_extensionsRequired;
|
||||
}
|
||||
set {
|
||||
if ((value == null)) {
|
||||
this.m_extensionsRequired = value;
|
||||
return;
|
||||
}
|
||||
if ((value.Length < 1u)) {
|
||||
throw new System.ArgumentException("Array not long enough");
|
||||
}
|
||||
this.m_extensionsRequired = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An array of accessors.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("accessors")]
|
||||
public Accessor[] Accessors {
|
||||
get {
|
||||
return this.m_accessors;
|
||||
}
|
||||
set {
|
||||
if ((value == null)) {
|
||||
this.m_accessors = value;
|
||||
return;
|
||||
}
|
||||
if ((value.Length < 1u)) {
|
||||
throw new System.ArgumentException("Array not long enough");
|
||||
}
|
||||
this.m_accessors = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An array of keyframe animations.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("animations")]
|
||||
public Animation[] Animations {
|
||||
get {
|
||||
return this.m_animations;
|
||||
}
|
||||
set {
|
||||
if ((value == null)) {
|
||||
this.m_animations = value;
|
||||
return;
|
||||
}
|
||||
if ((value.Length < 1u)) {
|
||||
throw new System.ArgumentException("Array not long enough");
|
||||
}
|
||||
this.m_animations = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Metadata about the glTF asset.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("asset")]
|
||||
public Asset Asset {
|
||||
get {
|
||||
return this.m_asset;
|
||||
}
|
||||
set {
|
||||
this.m_asset = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An array of buffers.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("buffers")]
|
||||
public Buffer[] Buffers {
|
||||
get {
|
||||
return this.m_buffers;
|
||||
}
|
||||
set {
|
||||
if ((value == null)) {
|
||||
this.m_buffers = value;
|
||||
return;
|
||||
}
|
||||
if ((value.Length < 1u)) {
|
||||
throw new System.ArgumentException("Array not long enough");
|
||||
}
|
||||
this.m_buffers = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An array of bufferViews.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("bufferViews")]
|
||||
public BufferView[] BufferViews {
|
||||
get {
|
||||
return this.m_bufferViews;
|
||||
}
|
||||
set {
|
||||
if ((value == null)) {
|
||||
this.m_bufferViews = value;
|
||||
return;
|
||||
}
|
||||
if ((value.Length < 1u)) {
|
||||
throw new System.ArgumentException("Array not long enough");
|
||||
}
|
||||
this.m_bufferViews = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An array of cameras.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("cameras")]
|
||||
public Camera[] Cameras {
|
||||
get {
|
||||
return this.m_cameras;
|
||||
}
|
||||
set {
|
||||
if ((value == null)) {
|
||||
this.m_cameras = value;
|
||||
return;
|
||||
}
|
||||
if ((value.Length < 1u)) {
|
||||
throw new System.ArgumentException("Array not long enough");
|
||||
}
|
||||
this.m_cameras = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An array of images.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("images")]
|
||||
public Image[] Images {
|
||||
get {
|
||||
return this.m_images;
|
||||
}
|
||||
set {
|
||||
if ((value == null)) {
|
||||
this.m_images = value;
|
||||
return;
|
||||
}
|
||||
if ((value.Length < 1u)) {
|
||||
throw new System.ArgumentException("Array not long enough");
|
||||
}
|
||||
this.m_images = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An array of materials.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("materials")]
|
||||
public Material[] Materials {
|
||||
get {
|
||||
return this.m_materials;
|
||||
}
|
||||
set {
|
||||
if ((value == null)) {
|
||||
this.m_materials = value;
|
||||
return;
|
||||
}
|
||||
if ((value.Length < 1u)) {
|
||||
throw new System.ArgumentException("Array not long enough");
|
||||
}
|
||||
this.m_materials = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An array of meshes.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("meshes")]
|
||||
public Mesh[] Meshes {
|
||||
get {
|
||||
return this.m_meshes;
|
||||
}
|
||||
set {
|
||||
if ((value == null)) {
|
||||
this.m_meshes = value;
|
||||
return;
|
||||
}
|
||||
if ((value.Length < 1u)) {
|
||||
throw new System.ArgumentException("Array not long enough");
|
||||
}
|
||||
this.m_meshes = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An array of nodes.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("nodes")]
|
||||
public Node[] Nodes {
|
||||
get {
|
||||
return this.m_nodes;
|
||||
}
|
||||
set {
|
||||
if ((value == null)) {
|
||||
this.m_nodes = value;
|
||||
return;
|
||||
}
|
||||
if ((value.Length < 1u)) {
|
||||
throw new System.ArgumentException("Array not long enough");
|
||||
}
|
||||
this.m_nodes = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An array of samplers.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("samplers")]
|
||||
public Sampler[] Samplers {
|
||||
get {
|
||||
return this.m_samplers;
|
||||
}
|
||||
set {
|
||||
if ((value == null)) {
|
||||
this.m_samplers = value;
|
||||
return;
|
||||
}
|
||||
if ((value.Length < 1u)) {
|
||||
throw new System.ArgumentException("Array not long enough");
|
||||
}
|
||||
this.m_samplers = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The index of the default scene.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("scene")]
|
||||
public System.Nullable<int> Scene {
|
||||
get {
|
||||
return this.m_scene;
|
||||
}
|
||||
set {
|
||||
if ((value < 0)) {
|
||||
throw new System.ArgumentOutOfRangeException("Scene", value, "Expected value to be greater than or equal to 0");
|
||||
}
|
||||
this.m_scene = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An array of scenes.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("scenes")]
|
||||
public Scene[] Scenes {
|
||||
get {
|
||||
return this.m_scenes;
|
||||
}
|
||||
set {
|
||||
if ((value == null)) {
|
||||
this.m_scenes = value;
|
||||
return;
|
||||
}
|
||||
if ((value.Length < 1u)) {
|
||||
throw new System.ArgumentException("Array not long enough");
|
||||
}
|
||||
this.m_scenes = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An array of skins.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("skins")]
|
||||
public Skin[] Skins {
|
||||
get {
|
||||
return this.m_skins;
|
||||
}
|
||||
set {
|
||||
if ((value == null)) {
|
||||
this.m_skins = value;
|
||||
return;
|
||||
}
|
||||
if ((value.Length < 1u)) {
|
||||
throw new System.ArgumentException("Array not long enough");
|
||||
}
|
||||
this.m_skins = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An array of textures.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("textures")]
|
||||
public Texture[] Textures {
|
||||
get {
|
||||
return this.m_textures;
|
||||
}
|
||||
set {
|
||||
if ((value == null)) {
|
||||
this.m_textures = value;
|
||||
return;
|
||||
}
|
||||
if ((value.Length < 1u)) {
|
||||
throw new System.ArgumentException("Array not long enough");
|
||||
}
|
||||
this.m_textures = 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 ExtensionsUsed property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeExtensionsUsed() {
|
||||
return ((m_extensionsUsed == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the ExtensionsRequired property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeExtensionsRequired() {
|
||||
return ((m_extensionsRequired == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Accessors property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeAccessors() {
|
||||
return ((m_accessors == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Animations property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeAnimations() {
|
||||
return ((m_animations == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Asset property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeAsset() {
|
||||
return ((m_asset == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Buffers property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeBuffers() {
|
||||
return ((m_buffers == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the BufferViews property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeBufferViews() {
|
||||
return ((m_bufferViews == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Cameras property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeCameras() {
|
||||
return ((m_cameras == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Images property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeImages() {
|
||||
return ((m_images == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Materials property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeMaterials() {
|
||||
return ((m_materials == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Meshes property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeMeshes() {
|
||||
return ((m_meshes == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Nodes property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeNodes() {
|
||||
return ((m_nodes == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Samplers property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeSamplers() {
|
||||
return ((m_samplers == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Scene property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeScene() {
|
||||
return ((m_scene == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Scenes property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeScenes() {
|
||||
return ((m_scenes == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Skins property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeSkins() {
|
||||
return ((m_skins == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Textures property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeTextures() {
|
||||
return ((m_textures == 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue