Holds all the information needed about a viewport.
More...
Holds all the information needed about a viewport.
See ViewportManager::createOrRetrieve() or Viewport::create() for instantiation.
◆ ~Viewport()
virtual nkGraphics::Viewport::~Viewport |
( |
| ) |
|
|
virtual |
◆ getWidth()
virtual float nkGraphics::Viewport::getWidth |
( |
| ) |
const |
|
pure virtual |
- Returns
- The width of the viewport.
◆ getHeight()
virtual float nkGraphics::Viewport::getHeight |
( |
| ) |
const |
|
pure virtual |
- Returns
- The height of the viewport.
◆ getMinDepth()
virtual float nkGraphics::Viewport::getMinDepth |
( |
| ) |
const |
|
pure virtual |
- Returns
- The min depth of the viewport.
◆ getMaxDepth()
virtual float nkGraphics::Viewport::getMaxDepth |
( |
| ) |
const |
|
pure virtual |
- Returns
- The max depth of the viewport.
◆ getTopLeftX()
virtual float nkGraphics::Viewport::getTopLeftX |
( |
| ) |
const |
|
pure virtual |
- Returns
- The top left x of the viewport.
◆ getTopLeftY()
virtual float nkGraphics::Viewport::getTopLeftY |
( |
| ) |
const |
|
pure virtual |
- Returns
- The top left y of the viewport.
◆ getName()
- Returns
- The name of the viewport.
◆ getDirtyViewport()
virtual bool nkGraphics::Viewport::getDirtyViewport |
( |
| ) |
const |
|
virtual |
- Returns
- Whether the viewport is dirty (true) or not (false).
◆ setWidth()
virtual void nkGraphics::Viewport::setWidth |
( |
float |
width | ) |
|
|
pure virtual |
Sets the width wanted for the viewport.
- Parameters
-
width | The width wanted, in pixels. |
◆ setHeight()
virtual void nkGraphics::Viewport::setHeight |
( |
float |
height | ) |
|
|
pure virtual |
Sets the height wanted for the viewport.
- Parameters
-
height | The height wanted, in pixels. |
◆ setMinDepth()
virtual void nkGraphics::Viewport::setMinDepth |
( |
float |
value | ) |
|
|
pure virtual |
Sets the min depth for the viewport.
- Parameters
-
value | The min depth the viewport should hold, between [0, 1]. |
◆ setMaxDepth()
virtual void nkGraphics::Viewport::setMaxDepth |
( |
float |
value | ) |
|
|
pure virtual |
Sets the max depth for the viewport.
- Parameters
-
value | The max depth the viewport should hold, between [0, 1]. |
◆ setTopLeftX()
virtual void nkGraphics::Viewport::setTopLeftX |
( |
float |
value | ) |
|
|
pure virtual |
Sets the top left x of the viewport.
- Parameters
-
value | The top left x of the viewport, in pixels. |
◆ setTopLeftY()
virtual void nkGraphics::Viewport::setTopLeftY |
( |
float |
value | ) |
|
|
pure virtual |
Sets the top left y of the viewport.
- Parameters
-
value | The top left y of the viewport, in pixels. |
◆ setName()
Sets the name of the viewport.
- Parameters
-
◆ setDirtyViewport()
virtual void nkGraphics::Viewport::setDirtyViewport |
( |
bool |
value | ) |
|
|
virtual |
Sets whether the viewport has to be considered dirty and needs an update.
- Parameters
-
value | If an update is needed (true) or not (false). |
◆ create()
Creates a standalone resource, linking it to a system, but no manager. This method can be used to allocate a resource and manually manage its lifetime.
- Parameters
-
system | The system to create the resource into. If left to nullptr, then the Singleton instance will be used. |
- Returns
- The created resource instance.
The documentation for this class was generated from the following file:
- Documentation/Headers/NilkinsGraphics/Viewports/Viewport.h