mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 14:38:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
183
Brutal.Gltf/GltfApi/GeneratedSchema/Camera.gen.cs
Normal file
183
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,
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue