Skip to content

ludus::foundation::math::Viewport

Ludus Wiki · API overview · Browse API

Struct

Framebuffer rectangle for NDC<->pixel conversion.
Top-left origin, Y down, physical pixels. Extents must be positive and finite.

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

#include <ludus/foundation/math/projection.hpp>
struct ludus::foundation::math::Viewport

Fields

X

float32 ludus::foundation::math::Viewport::X = 0.0f

Related types: float32

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

Y

float32 ludus::foundation::math::Viewport::Y = 0.0f

Related types: float32

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

Width

float32 ludus::foundation::math::Viewport::Width = 0.0f

Related types: float32

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

Height

float32 ludus::foundation::math::Viewport::Height = 0.0f

Related types: float32

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