Table of Contents

Interface ICamera3D

Namespace
AstraEngine.View3D
Assembly
AstraEngine.View3D.dll

A ICamera3D provides methods for rendering 3D space.

public interface ICamera3D

Properties

FovY

The FOV on the Y axis of the camera.

float FovY { get; set; }

Property Value

float

Orthographic

Whether or not the camera is orthographic.

bool Orthographic { get; set; }

Property Value

bool

Position

The position of the camera.

Position3D Position { get; set; }

Property Value

Position3D

Target

The target that the camera looks at.

Position3D Target { get; set; }

Property Value

Position3D

Up

The up vector of the camera.

Position3D Up { get; set; }

Property Value

Position3D

Methods

BeginDrawing()

This method is called at the start of a render frame.

void BeginDrawing()

Clear(Color)

Clears the view with the specified color

void Clear(Color color)

Parameters

color Color

The color to fill the view

DrawBox(Position3D, double, double, double, Color)

Draws a box

void DrawBox(Position3D position, double width, double height, double length, Color color)

Parameters

position Position3D

The position of the box

width double

The width of the box

height double

The height of the box

length double

The length of the box

color Color

The color of the box

EndDrawing()

This method is called at the end of a render frame.

void EndDrawing()