Skip to main content

CameraPerspective

The CameraPerspective class provides an interface for standard perspective cameras. It allows control over the field of view, aspect ratio, and clipping planes.

#include <scene/TellusimCameraPerspective.h>

Inheritance

Constructors

explicit CameraPerspective(const char *name = nullptr)
explicit CameraPerspective(Scene &scene, const char *name = nullptr)

Methods

Field of view.

void setFov(float32_t fov_x, float32_t fov_y)
void setFovX(float32_t fov, float32_t aspect = 16.0f / 9.0f)
void setFovY(float32_t fov, float32_t aspect = 16.0f / 9.0f)
float32_t getFovX() const
float32_t getFovY() const
float32_t getAspect() const

Near clipping plane.

void setZNear(float32_t znear)

Far clipping plane.

void setZFar(float32_t zfar)