Table of Contents

Class RaylibCamera3D

Namespace
AstraEngine.View3D
Assembly
AstraEngine.RaylibAdapter.dll

An implementation of the ICamera3D that is compatible with Raylib-cs.

public sealed class RaylibCamera3D : ICamera3D
Inheritance
RaylibCamera3D
Implements
Inherited Members

Properties

FovY

The FOV on the Y axis of the camera.

public float FovY { get; set; }

Property Value

float

Orthographic

Whether or not the camera is orthographic.

public bool Orthographic { get; set; }

Property Value

bool

Position

The position of the camera.

public Position3D Position { get; set; }

Property Value

Position3D

Target

The target that the camera looks at.

public Position3D Target { get; set; }

Property Value

Position3D

Up

The up vector of the camera.

public Position3D Up { get; set; }

Property Value

Position3D

Methods

BeginDrawing()

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

public void BeginDrawing()

Clear(Color)

Clears the view with the specified color

public void Clear(Color backgroundColor)

Parameters

backgroundColor Color

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

Draws a box

public 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.

public void EndDrawing()