Skip to content

LiteFX::Rendering::Viewport::Viewport

Initializes a new viewport.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] explicit Viewport(
    RectF const& clientRect = { },
    Float minDepth = 0.f,
    Float maxDepth = 1.f) noexcept;

Parameters

NameDescription
clientRectThe rectangle that defines the dimensions of the viewport.
minDepthThe minimum depth of the viewport.
maxDepthThe maximum depth of the viewport.