Raven Engine v0.1
A modern 3D Game Engine
Loading...
Searching...
No Matches
Raven::EditorCamera Class Reference

#include <EditorCamera.h>

Inherits Raven::Camera.

Public Member Functions

 EditorCamera ()=default
ILLUMINE_API EditorCamera (float fovDegrees, float aspectRatio, float nearClip, float farClip)
ILLUMINE_API void OnUpdate (Timestep ts)
ILLUMINE_API void SetViewportSize (float width, float height)
Public Member Functions inherited from Raven::Camera
 Camera ()=default
 Camera (const Crux::mat4 &projection)
 Constructs a Camera with a given projection matrix.
virtual ~Camera ()=default
const Crux::mat4GetProjection () const
const Crux::mat4GetViewProjection () const
const Crux::mat4GetView () const
const Crux::vec3GetPosition () const noexcept

Additional Inherited Members

Protected Attributes inherited from Raven::Camera
Crux::mat4 m_Projection = Crux::mat4(1.0f)
 Projection matrix (e.g., perspective or orthographic).
Crux::mat4 m_View = Crux::mat4(1.0f)
 View matrix representing camera position/orientation.
Crux::mat4 m_ViewProjection = Crux::mat4(1.0f)
 Cached combined view-projection matrix.
Crux::vec3 m_Position = Crux::vec3(0.0f)
 World Space Position of the Camera.

Constructor & Destructor Documentation

◆ EditorCamera() [1/2]

Raven::EditorCamera::EditorCamera ( )
default

◆ EditorCamera() [2/2]

Raven::EditorCamera::EditorCamera ( float fovDegrees,
float aspectRatio,
float nearClip,
float farClip )

Member Function Documentation

◆ OnUpdate()

void Raven::EditorCamera::OnUpdate ( Timestep ts)

◆ SetViewportSize()

void Raven::EditorCamera::SetViewportSize ( float width,
float height )

The documentation for this class was generated from the following files: