Skip to content

ludus::foundation::math::Frustum

Ludus Wiki · API overview · Browse API

Struct

Six inward-facing normalized planes plus an active mask.
For an infinite reverse-Z perspective frustum the far plane (depthLower) is inactive. Plane order: Left, Right, Bottom, Top, Near, Far (physical labels under reverse-Z).

Declared in modules/foundation/math/include/ludus/foundation/math/geometry.hpp

#include <ludus/foundation/math/geometry.hpp>
struct ludus::foundation::math::Frustum

Fields

Planes

Plane ludus::foundation::math::Frustum::Planes[6][6] = {}

Related types: Plane

Declared in modules/foundation/math/include/ludus/foundation/math/geometry.hpp

ActiveMask

uint8 ludus::foundation::math::Frustum::ActiveMask = 0x3f
bit i set => Planes[i] is active

Related types: uint8

Declared in modules/foundation/math/include/ludus/foundation/math/geometry.hpp

Mode

FrustumMode ludus::foundation::math::Frustum::Mode = FrustumMode::FinitePerspectiveOrOrthographic

Related types: FrustumMode

Declared in modules/foundation/math/include/ludus/foundation/math/geometry.hpp