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
idstring-
The id
namestring-
The name
tagstring-
The tag
isEnablebool-
The is enable
viewportRectangleI-
The viewport
resolutionVector2-
The resolution
backgroundColorColor-
The background color
cameraBorderfloat-
The camera border
Fields
Position
The position
[JsonPropertyName("_Position_")]
public Vector2 PositionField Value
Viewport
The viewport
[JsonPropertyName("_Viewport_")]
public RectangleI ViewportField 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()