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
Orthographic
Whether or not the camera is orthographic.
bool Orthographic { get; set; }
Property Value
Position
The position of the camera.
Position3D Position { get; set; }
Property Value
Target
The target that the camera looks at.
Position3D Target { get; set; }
Property Value
Up
The up vector of the camera.
Position3D Up { get; set; }
Property Value
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
colorColorThe 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
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.
void EndDrawing()