mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 06:28:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,239 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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
|
||||
/// Geometry to be rendered with the given material.
|
||||
/// </summary>
|
||||
public partial class MeshPrimitive {
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Attributes.
|
||||
/// </summary>
|
||||
private System.Collections.Generic.Dictionary<string, int> m_attributes;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Indices.
|
||||
/// </summary>
|
||||
private System.Nullable<int> m_indices;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Material.
|
||||
/// </summary>
|
||||
private System.Nullable<int> m_material;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Mode.
|
||||
/// </summary>
|
||||
private ModeEnum m_mode = ModeEnum.Triangles;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Targets.
|
||||
/// </summary>
|
||||
private System.Collections.Generic.Dictionary<string, int>[] m_targets;
|
||||
|
||||
/// <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 plain JSON object, where each key corresponds to a mesh attribute semantic and each value is the index of the accessor containing attribute's data.
|
||||
/// </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>
|
||||
/// The index of the accessor that contains the vertex indices.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("indices")]
|
||||
public System.Nullable<int> Indices {
|
||||
get {
|
||||
return this.m_indices;
|
||||
}
|
||||
set {
|
||||
if ((value < 0)) {
|
||||
throw new System.ArgumentOutOfRangeException("Indices", value, "Expected value to be greater than or equal to 0");
|
||||
}
|
||||
this.m_indices = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The index of the material to apply to this primitive when rendering.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("material")]
|
||||
public System.Nullable<int> Material {
|
||||
get {
|
||||
return this.m_material;
|
||||
}
|
||||
set {
|
||||
if ((value < 0)) {
|
||||
throw new System.ArgumentOutOfRangeException("Material", value, "Expected value to be greater than or equal to 0");
|
||||
}
|
||||
this.m_material = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The topology type of primitives to render.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("mode")]
|
||||
public ModeEnum Mode {
|
||||
get {
|
||||
return this.m_mode;
|
||||
}
|
||||
set {
|
||||
this.m_mode = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An array of morph targets.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("targets")]
|
||||
public System.Collections.Generic.Dictionary<string, int>[] Targets {
|
||||
get {
|
||||
return this.m_targets;
|
||||
}
|
||||
set {
|
||||
if ((value == null)) {
|
||||
this.m_targets = value;
|
||||
return;
|
||||
}
|
||||
if ((value.Length < 1u)) {
|
||||
throw new System.ArgumentException("Array not long enough");
|
||||
}
|
||||
this.m_targets = 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 Indices property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeIndices() {
|
||||
return ((m_indices == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Material property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeMaterial() {
|
||||
return ((m_material == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Mode property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeMode() {
|
||||
return ((m_mode == ModeEnum.Triangles)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Targets property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeTargets() {
|
||||
return ((m_targets == 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 topology type of primitives to render.
|
||||
/// </summary>
|
||||
public enum ModeEnum {
|
||||
|
||||
Points = 0,
|
||||
|
||||
Lines = 1,
|
||||
|
||||
LineLoop = 2,
|
||||
|
||||
LineStrip = 3,
|
||||
|
||||
Triangles = 4,
|
||||
|
||||
TriangleStrip = 5,
|
||||
|
||||
TriangleFan = 6,
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue