Skip to content

ludus::graphics::renderer::ProjectionDescription

Ludus Wiki · API overview · Browse API

Struct

Ordinary lens/pose values; renderer does not depend on gameplay camera ownership.

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/views.hpp

#include <ludus/graphics/renderer/views.hpp>
struct ludus::graphics::renderer::ProjectionDescription final

Fields

Kind

ProjectionKind ludus::graphics::renderer::ProjectionDescription::Kind = ProjectionKind::Perspective
Projection factory to use.

Related types: ProjectionKind

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/views.hpp

WorldToView

ludus::foundation::math::Matrix4 ludus::graphics::renderer::ProjectionDescription::WorldToView = ludus::foundation::math::Matrix4::Identity()
Finite world-to-view matrix supplied by a camera/extraction adapter.

Related types: ludus::foundation::math::Matrix4

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/views.hpp

VerticalFovRadians

ludus::foundation::float32 ludus::graphics::renderer::ProjectionDescription::VerticalFovRadians = 1
Vertical angle in radians, in (0,Pi), for perspective lenses.

Related types: ludus::foundation::float32

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/views.hpp

OrthographicHeight

ludus::foundation::float32 ludus::graphics::renderer::ProjectionDescription::OrthographicHeight = 2
Positive vertical world extent for Orthographic.

Related types: ludus::foundation::float32

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/views.hpp

Near

ludus::foundation::float32 ludus::graphics::renderer::ProjectionDescription::Near = 0.1F
World units; positive for perspective, nonnegative for orthographic.

Related types: ludus::foundation::float32

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/views.hpp

Far

ludus::foundation::float32 ludus::graphics::renderer::ProjectionDescription::Far = 1000
World units, greater than Near; ignored for PerspectiveInfinite.

Related types: ludus::foundation::float32

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/views.hpp