Class View
- Namespace
- AstraEngine.Canvas2D
- Assembly
- AstraEngine.Canvas2D.dll
Represents a 2D view port that draws itself and all children each tick. Children components should not call BeginDrawing() or EndDrawing().
public class View : Component
- Inheritance
-
View
- Inherited Members
Properties
BackgroundColor
public Color BackgroundColor { get; set; }
Property Value
Canvas
The target canvas
public required ICanvas2D Canvas { get; set; }
Property Value
Methods
Tick(double)
Clears the canvas with the specified BackgroundColor then draws all children Drawable components.
public override void Tick(double delta)
Parameters
deltadouble