Class Camera3D
This class represents 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. |
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 with 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()
Attaches the camera to the system.
Declaration
protected override bool OnAttached()
Returns
Type | Description |
---|---|
bool | True if everything is OK. |
Overrides
RefreshDimensions()
Refreshes the width and height of the camera.
Declaration
protected override void RefreshDimensions()
Overrides
RefreshProjection()
Calculates the projection matrix.
Declaration
protected override void RefreshProjection()
Overrides
RefreshView()
Refreshes the view matrix.
Declaration
protected override void RefreshView()