Skip to main content

CameraOrthographic

The CameraOrthographic class provides an interface for standard orthographic cameras. It allows control over the orthographic size and clipping planes.

#include <scene/TellusimCameraOrthographic.h>

Inheritance

Constructors

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

Methods

Ortho size.

void setSize(float32_t size_x, float32_t size_y)
void setSizeX(float32_t size, float32_t aspect = 1.0f)
void setSizeY(float32_t size, float32_t aspect = 1.0f)
float32_t getSizeX() const
float32_t getSizeY() const

Near clipping plane.

void setZNear(float32_t znear)

Far clipping plane.

void setZFar(float32_t zfar)