Class RenderContextDefaultState
After every Render call the values are reset to the ones saved here. This ensures that we do not necessarily need a Camera in the Scene Graph. The viewport width and height is updated with every resize.
Inheritance
System.Object
RenderContextDefaultState
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Engine.Core
Assembly: Fusee.Engine.Core.dll
Syntax
public class RenderContextDefaultState
Constructors
RenderContextDefaultState()
Creates a new instance of type RenderContextDefaultState.
Declaration
public RenderContextDefaultState()
Fields
FovDefault
The default distance field of view.
Declaration
public readonly float FovDefault
Field Value
Type | Description |
---|---|
System.Single |
View
The view matrix.
Declaration
public readonly float4x4 View
Field Value
Type | Description |
---|---|
float4x4 |
ZFarDefault
The default distance to the far clipping plane.
Declaration
public readonly float ZFarDefault
Field Value
Type | Description |
---|---|
System.Single |
ZNearDefautlt
The default distance to the near clipping plane.
Declaration
public readonly float ZNearDefautlt
Field Value
Type | Description |
---|---|
System.Single |
Properties
CanvasHeight
This value should be equal to the window/canvas height and is set at every resize. If this value is changed the default Projection matrix is recalculated.
Declaration
public int CanvasHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
CanvasWidth
This value should be equal to the window/canvas width and is set at every resize. If this value is changed the default Projection matrix is recalculated.
Declaration
public int CanvasWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Projection
The projection matrix.
Declaration
public float4x4 Projection { get; }
Property Value
Type | Description |
---|---|
float4x4 |