Skip to content

Engine → Core

frustum.h

Six inward-facing, normalised planes describing a view volume. Points with a non-negative signed distance to every plane are inside. Built from a view-projection matrix with forward 0..1 depth (near plane at depth 0).

Structs

File Description
frustum Six inward-facing, normalised planes describing a view volume. Points with a non-negative signed distance to every plane are inside. Built from a view-projection matrix with forward 0..1 depth (near plane at depth 0).

Enumerations

frustum_plane

enum class frustum_plane : u8 {
    LEFT = 0,
    RIGHT,
    BOTTOM,
    TOP,
    NEAR_PLANE,
    FAR_PLANE,
    COUNT
};

Index of each frustum plane in frustum::planes. NEAR and FAR are Windows macros, hence the _PLANE suffix.

Constants

Name Type Value Description
FRUSTUM_PLANE_COUNT inline constexpr usize static_cast<usize>(frustum_plane::COUNT)