Class Camera3D
This class represent a camera in a 3D world. Cameras are the devices that capture and display the world to the player.
Inheritance
Camera3D
Implements
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class Camera3D : Camera, IDependencyObject
Constructors
Camera3D()
Initializes a new instance of the Camera3D class.
Declaration
public Camera3D()
Properties
AspectRatio
Gets or sets the aspect ratio.
Declaration
public float AspectRatio { get; set; }
Property Value
Type | Description |
---|---|
float | The aspect ratio. |
DrawablesToRender
Gets the drawable type that this camera should render.
Declaration
public override DrawableType DrawablesToRender { get; }
Property Value
Type | Description |
---|---|
DrawableType |
Overrides
FarPlane
Gets or sets the far plane.
Declaration
[RenderPropertyAsFInput(2, 3.4028235E+38, DefaultValue = 1000)]
public override float FarPlane { get; set; }
Property Value
Type | Description |
---|---|
float | The far plane. |
Overrides
FieldOfView
Gets or sets the field of view.
Declaration
public override float FieldOfView { get; set; }
Property Value
Type | Description |
---|---|
float | The field of view. |
Overrides
FrameBuffer
Gets or sets the RenderTarget associated to the camera.
Declaration
public override FrameBuffer FrameBuffer { get; set; }
Property Value
Type | Description |
---|---|
FrameBuffer | The render target. |
Overrides
NearPlane
Gets or sets the near plane.
Declaration
[RenderPropertyAsFInput(1E-45, 3.4028235E+38, DefaultValue = 0.1)]
public override float NearPlane { get; set; }
Property Value
Type | Description |
---|---|
float | The near plane. |
Overrides
Methods
OnAttached()
Attach the camera to the system.
Declaration
protected override bool OnAttached()
Returns
Type | Description |
---|---|
bool | True if all is OK. |
Overrides
RefreshDimensions()
Refresh the with and height of the camera.
Declaration
protected override void RefreshDimensions()
Overrides
RefreshProjection()
Calculate the projection matrix.
Declaration
protected override void RefreshProjection()
Overrides
RefreshView()
Refresh the view matrix.
Declaration
protected override void RefreshView()