Class Camera
- Namespace
- Alis.Core.Ecs.Component.Render
- Assembly
- Alis.dll
The camera class
public class Camera : AComponent, IComponent<GameObject>, IEnabled, IIdentifier, IRuntime, IBuilder<CameraBuilder>
Inheritance
Implements
Inherited Members
Constructors
Camera()
Initializes a new instance of the Alis.Core.Ecs.Component.Render.Camera class
public Camera()
Camera(string, string, string, bool, RectangleI, Vector2, Color, float)
Initializes a new instance of the Alis.Core.Ecs.Component.Render.Camera class
public Camera(string id, string name, string tag, bool isEnable, RectangleI viewport, Vector2 resolution, Color backgroundColor, float cameraBorder)
Parameters
id
string-
The id
name
string-
The name
tag
string-
The tag
isEnable
bool-
The is enable
viewport
RectangleI-
The viewport
resolution
Vector2-
The resolution
backgroundColor
Color-
The background color
cameraBorder
float-
The camera border
Fields
Position
The position
[JsonPropertyName("_Position_")]
public Vector2 Position
Field Value
Viewport
The viewport
[JsonPropertyName("_Viewport_")]
public RectangleI Viewport
Field Value
Properties
BackgroundColor
Gets or sets the value of the background color
[JsonPropertyName("_BackgroundColor_")]
public Color BackgroundColor { get; set; }
Property Value
CameraBorder
Gets or sets the value of the camera border
[JsonPropertyName("_CameraBorder_")]
public float CameraBorder { get; set; }
Property Value
Resolution
Gets or sets the value of the resolution
[JsonPropertyName("_Resolution_")]
public Vector2 Resolution { get; set; }
Property Value
TextureTarget
Gets or sets the value of the texture target
[JsonPropertyName("_TextureTarget_", true, true)]
public IntPtr TextureTarget { get; set; }
Property Value
Methods
Builder()
Builders this instance
public CameraBuilder Builder()
Returns
- CameraBuilder
-
The camera builder
OnExit()
Ons the exit
public override void OnExit()
OnStart()
Starts this instance
public override void OnStart()
OnUpdate()
Ons the update
public override void OnUpdate()