mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
156 lines
5.1 KiB
C#
156 lines
5.1 KiB
C#
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace Brutal.GltfApi {
|
|
using System.Linq;
|
|
using System.Runtime.Serialization;
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
/// <summary>
|
|
/// Object part of the GLTF file schema
|
|
/// 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);
|
|
}
|
|
}
|
|
}
|