LiteFX::Rendering::Viewport::Viewport¶
Constructors
Synopses¶
Declared in <litefx/rendering_api.hpp>
Creates a copy of a viewport.
[[dllimport, dllexport]] Viewport(Viewport const& _other);
Takes over another instance of a viewport.
[[dllimport, dllexport]] Viewport(Viewport&& _other) noexcept;
Initializes a new viewport.
[[dllimport, dllexport]] explicit Viewport(
RectF const& clientRect = { },
Float minDepth = 0.f,
Float maxDepth = 1.f) noexcept;
Parameters¶
| Name | Description |
|---|---|
| _other | The viewport instance to copy. |
| clientRect | The rectangle that defines the dimensions of the viewport. |
| minDepth | The minimum depth of the viewport. |
| maxDepth | The maximum depth of the viewport. |