Skip to content

LiteFX::Rendering::Viewport::Viewport

Constructors

Synopses

Declared in <litefx/rendering_api.hpp>

Creates a copy of a viewport.

[[dllimport, dllexport]] Viewport(Viewport const& _other);

» more...

Takes over another instance of a viewport.

[[dllimport, dllexport]] Viewport(Viewport&& _other) noexcept;

» more...

Initializes a new viewport.

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

» more...

Parameters

NameDescription
_otherThe viewport instance to copy.
clientRectThe rectangle that defines the dimensions of the viewport.
minDepthThe minimum depth of the viewport.
maxDepthThe maximum depth of the viewport.