Class PerspectiveCamera

Inheritance Relationships

Base Type

Class Documentation

class PerspectiveCamera : public Cacao::Camera

Camera implementing a perspective view.

Public Functions

PerspectiveCamera(float fov = 60)

Create a perspective camera.

Parameters:

fov – The FOV in degrees

Throws:

BadInitStateException – If the window is not open

inline float GetFOV() const

Get the camera’s FOV.

Returns:

The FOV

inline void SetFOV(float newFov)

Set the camera’s FOV.

Parameters:

newFov – The new FOV in degrees

Protected Functions

virtual void RecalculateProjectionMatrix() override

Protected Attributes

float fov