Table of Contents

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

Vector2

Viewport

The viewport

[JsonPropertyName("_Viewport_")]
public RectangleI Viewport

Field Value

RectangleI

Properties

BackgroundColor

Gets or sets the value of the background color

[JsonPropertyName("_BackgroundColor_")]
public Color BackgroundColor { get; set; }

Property Value

Color

CameraBorder

Gets or sets the value of the camera border

[JsonPropertyName("_CameraBorder_")]
public float CameraBorder { get; set; }

Property Value

float

Resolution

Gets or sets the value of the resolution

[JsonPropertyName("_Resolution_")]
public Vector2 Resolution { get; set; }

Property Value

Vector2

TextureTarget

Gets or sets the value of the texture target

[JsonPropertyName("_TextureTarget_", true, true)]
public IntPtr TextureTarget { get; set; }

Property Value

IntPtr

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()

See Also