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
Orthographic
Whether or not the camera is orthographic.
public bool Orthographic { get; set; }
Property Value
Position
The position of the camera.
public Position3D Position { get; set; }
Property Value
Target
The target that the camera looks at.
public Position3D Target { get; set; }
Property Value
Up
The up vector of the camera.
public Position3D Up { get; set; }
Property Value
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
backgroundColorColor
DrawBox(Position3D, double, double, double, Color)
Draws a box
public void DrawBox(Position3D position, double width, double height, double length, Color color)
Parameters
positionPosition3DThe position of the box
widthdoubleThe width of the box
heightdoubleThe height of the box
lengthdoubleThe length of the box
colorColorThe color of the box
EndDrawing()
This method is called at the end of a render frame.
public void EndDrawing()