Table of Contents

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

Color

Camera

The target camera

public required ICamera3D Camera { get; set; }

Property Value

ICamera3D

Position

The Position of attached Entity.

public Position3D Position { get; }

Property Value

Position3D

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

delta double