Class OrthographicCamera

Inheritance Relationships

Base Type

Class Documentation

class OrthographicCamera : public Cacao::Camera

Camera implementing a orthographic view.

Public Functions

OrthographicCamera(float zoom = 1)

Create a orthographic camera.

Parameters:

zoom – The zoom-in factor for the camera (default: 1, <1 for zoom out, >1 for zoom in)

Throws:

BadInitStateException – If the window is not open

inline float GetZoomFactor() const

Get the camera’s zoom factor.

Returns:

The zoom factor

inline void SetZoomFactor(float newZoom)

Set the camera’s zoom factor.

Parameters:

newZoom – The new zoom factor for the camera (default: 1, <1 for zoom out, >1 for zoom in)