Implements a viewport.
More...
#include <rendering_api.hpp>
Inherits LiteFX::Rendering::IViewport.
|
| | Viewport (const RectF &clientRect={ }, Float minDepth=0.f, Float maxDepth=1.f) noexcept |
| | Initializes a new viewport.
|
| |
| | Viewport (const Viewport &_other) |
| | Creates a copy of a viewport.
|
| |
| | Viewport (Viewport &&_other) noexcept |
| | Takes over another instance of a viewport.
|
| |
| Viewport & | operator= (const Viewport &_other) |
| | Assigns a viewport by copying it.
|
| |
| Viewport & | operator= (Viewport &&_other) noexcept |
| | Assigns a viewport by taking it over.
|
| |
| | ~Viewport () noexcept override |
| | Releases the render target instance.
|
| |
| RectF | getRectangle () const noexcept override |
| | Gets the rectangle that defines the dimensions of the viewport.- Returns
- The rectangle that defines the dimensions of the viewport.
|
| |
| void | setRectangle (const RectF &rectangle) noexcept override |
| | Sets the rectangle that defines the dimensions of the viewport.- Parameters
-
| rectangle | The rectangle that defines the dimensions of the viewport. |
|
| |
| Float | getMinDepth () const noexcept override |
| | Gets the minimum depth of the viewport.- Returns
- The minimum depth of the viewport.
|
| |
| void | setMinDepth (Float depth) const noexcept override |
| | Sets the minimum depth of the viewport.- Parameters
-
| depth | The minimum depth of the viewport. |
|
| |
| Float | getMaxDepth () const noexcept override |
| | Gets the maximum depth of the viewport.- Returns
- The maximum depth of the viewport.
|
| |
| void | setMaxDepth (Float depth) const noexcept override |
| | Sets the maximum depth of the viewport.- Parameters
-
| depth | The maximum depth of the viewport. |
|
| |
| virtual | ~IViewport () noexcept=default |
| |
◆ Viewport() [1/3]
| Viewport::Viewport |
( |
const RectF & | clientRect = { }, |
|
|
Float | minDepth = 0.f, |
|
|
Float | maxDepth = 1.f ) |
|
explicitnoexcept |
Initializes a new viewport.
- Parameters
-
| clientRect | The rectangle that defines the dimensions of the viewport. |
| minDepth | The minimum depth of the viewport. |
| maxDepth | The maximum depth of the viewport. |
◆ Viewport() [2/3]
| LiteFX::Rendering::Viewport::Viewport |
( |
const Viewport & | _other | ) |
|
Creates a copy of a viewport.
- Parameters
-
| _other | The viewport instance to copy. |
◆ Viewport() [3/3]
| LiteFX::Rendering::Viewport::Viewport |
( |
Viewport && | _other | ) |
|
|
noexcept |
Takes over another instance of a viewport.
- Parameters
-
| _other | The viewport instance to take over. |
◆ ~Viewport()
Releases the render target instance.
◆ getMaxDepth()
| Float Viewport::getMaxDepth |
( |
| ) |
const |
|
overridevirtualnoexcept |
◆ getMinDepth()
| Float Viewport::getMinDepth |
( |
| ) |
const |
|
overridevirtualnoexcept |
◆ getRectangle()
| RectF Viewport::getRectangle |
( |
| ) |
const |
|
overridevirtualnoexcept |
Gets the rectangle that defines the dimensions of the viewport.
- Returns
- The rectangle that defines the dimensions of the viewport.
Implements LiteFX::Rendering::IViewport.
◆ operator=() [1/2]
Assigns a viewport by copying it.
- Parameters
-
| _other | The viewport instance to copy. |
- Returns
- A reference to the current viewport instance.
◆ operator=() [2/2]
Assigns a viewport by taking it over.
- Parameters
-
| _other | The viewport to take over. |
- Returns
- A reference to the current viewport instance.
◆ setMaxDepth()
| void Viewport::setMaxDepth |
( |
Float | depth | ) |
const |
|
overridevirtualnoexcept |
◆ setMinDepth()
| void Viewport::setMinDepth |
( |
Float | depth | ) |
const |
|
overridevirtualnoexcept |
◆ setRectangle()
| void Viewport::setRectangle |
( |
const RectF & | rectangle | ) |
|
|
overridevirtualnoexcept |
Sets the rectangle that defines the dimensions of the viewport.
- Parameters
-
| rectangle | The rectangle that defines the dimensions of the viewport. |
Implements LiteFX::Rendering::IViewport.