LiteFX 0.3.1.2022
Computer Graphics Engine
|
Implements a viewport. More...
#include <rendering_api.hpp>
Inherits LiteFX::Rendering::IViewport.
Classes | |
class | ViewportImpl |
Public Member Functions | |
Viewport (const RectF &clientRect={ }, const Float &minDepth=0.f, const Float &maxDepth=1.f) | |
Initializes a new viewport. More... | |
Viewport (Viewport &&) noexcept=delete | |
Viewport (const Viewport &) noexcept=delete | |
virtual | ~Viewport () noexcept |
virtual RectF | getRectangle () const noexcept override |
Gets the rectangle that defines the dimensions of the viewport. More... | |
virtual void | setRectangle (const RectF &rectangle) noexcept override |
Sets the rectangle that defines the dimensions of the viewport. More... | |
virtual Float | getMinDepth () const noexcept override |
Gets the minimum depth of the viewport. More... | |
virtual void | setMinDepth (const Float &depth) const noexcept override |
virtual Float | getMaxDepth () const noexcept override |
Gets the maximum depth of the viewport. More... | |
virtual void | setMaxDepth (const Float &depth) const noexcept override |
Public Member Functions inherited from LiteFX::Rendering::IViewport | |
virtual | ~IViewport () noexcept=default |
virtual RectF | getRectangle () const noexcept=0 |
Gets the rectangle that defines the dimensions of the viewport. More... | |
virtual void | setRectangle (const RectF &rectangle) noexcept=0 |
Sets the rectangle that defines the dimensions of the viewport. More... | |
virtual float | getMinDepth () const noexcept=0 |
Gets the minimum depth of the viewport. More... | |
virtual void | setMinDepth (const float &depth) const noexcept=0 |
Sets the minimum depth of the viewport. More... | |
virtual float | getMaxDepth () const noexcept=0 |
Gets the maximum depth of the viewport. More... | |
virtual void | setMaxDepth (const float &depth) const noexcept=0 |
Sets the maximum depth of the viewport. More... | |
Implements a viewport.
|
explicit |
Initializes a new viewport.
clientRect | The rectangle that defines the dimensions of the viewport. |
minDepth | The minimum depth of the viewport. |
maxDepth | The maximum depth of the viewport. |
|
deletenoexcept |
|
deletenoexcept |
|
virtualdefaultnoexcept |
|
overridevirtualnoexcept |
Gets the maximum depth of the viewport.
Implements LiteFX::Rendering::IViewport.
|
overridevirtualnoexcept |
Gets the minimum depth of the viewport.
Implements LiteFX::Rendering::IViewport.
|
overridevirtualnoexcept |
Gets the rectangle that defines the dimensions of the viewport.
Implements LiteFX::Rendering::IViewport.
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Sets the rectangle that defines the dimensions of the viewport.
Implements LiteFX::Rendering::IViewport.