Class View3D
- Namespace
- AstraEngine.View3D
- Assembly
- AstraEngine.View3D.dll
Represents a 3D view port that draws itself and all children each tick. Children components should not call BeginDrawing() or EndDrawing().
public class View3D : Component
- Inheritance
-
View3D
- Inherited Members
Properties
BackgroundColor
public Color BackgroundColor { get; set; }
Property Value
Camera
The target camera
public required ICamera3D Camera { get; set; }
Property Value
Position
The Position of attached Entity.
public Position3D Position { get; }
Property Value
Methods
Initialize()
Initializes Position. If the associated Entity has a Position it is used otherwise, initializes to (0, 0, 0).
public override void Initialize()
Tick(double)
Clears the view with the specified BackgroundColor then draws all children Drawable3D components.
public override void Tick(double delta)
Parameters
deltadouble