Skip to content

ludus::gameplay::camera::CameraLens

Ludus Wiki · API overview · Browse API

Struct

Authored lens values; the renderer supplies physical viewport aspect.

Declared in modules/gameplay/camera/include/ludus/gameplay/camera/camera.hpp

#include <ludus/gameplay/camera/camera.hpp>
struct ludus::gameplay::camera::CameraLens final

Fields

Projection

CameraProjection ludus::gameplay::camera::CameraLens::Projection = CameraProjection::OrthographicFinite
Selects the active FOV/span and far-plane policy.

Related types: CameraProjection

Declared in modules/gameplay/camera/include/ludus/gameplay/camera/camera.hpp

VerticalFov

foundation::float32 ludus::gameplay::camera::CameraLens::VerticalFov = 1.0F
Total vertical field of view in radians, in (0, pi), for perspective.

Related types: foundation::float32

Declared in modules/gameplay/camera/include/ludus/gameplay/camera/camera.hpp

VerticalSpan

foundation::float32 ludus::gameplay::camera::CameraLens::VerticalSpan = 14.0F
Full vertical visible span in world units, positive for orthographic.

Related types: foundation::float32

Declared in modules/gameplay/camera/include/ludus/gameplay/camera/camera.hpp

MinimumVisibleWidth

foundation::float32 ludus::gameplay::camera::CameraLens::MinimumVisibleWidth = 0.0F
Orthographic layout minimum full width; span = max(VerticalSpan, width/aspect).

Related types: foundation::float32

Declared in modules/gameplay/camera/include/ludus/gameplay/camera/camera.hpp

NearPlane

foundation::float32 ludus::gameplay::camera::CameraLens::NearPlane = 0.0F
Near distance in world units, positive for perspective, nonnegative for ortho.

Related types: foundation::float32

Declared in modules/gameplay/camera/include/ludus/gameplay/camera/camera.hpp

FarPlane

foundation::float32 ludus::gameplay::camera::CameraLens::FarPlane = 100.0F
Finite far distance in world units; ignored only for PerspectiveInfinite.

Related types: foundation::float32

Declared in modules/gameplay/camera/include/ludus/gameplay/camera/camera.hpp