LiteFX 0.3.1.2022
Computer Graphics Engine
LiteFX::Rendering::Viewport Class Reference

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...
 

Detailed Description

Implements a viewport.

Constructor & Destructor Documentation

◆ Viewport() [1/3]

Viewport::Viewport ( const RectF clientRect = { },
const Float minDepth = 0.f,
const Float maxDepth = 1.f 
)
explicit

Initializes a new viewport.

Parameters
clientRectThe rectangle that defines the dimensions of the viewport.
minDepthThe minimum depth of the viewport.
maxDepthThe maximum depth of the viewport.

◆ Viewport() [2/3]

LiteFX::Rendering::Viewport::Viewport ( Viewport &&  )
deletenoexcept

◆ Viewport() [3/3]

LiteFX::Rendering::Viewport::Viewport ( const Viewport )
deletenoexcept

◆ ~Viewport()

Viewport::~Viewport ( )
virtualdefaultnoexcept

Member Function Documentation

◆ getMaxDepth()

Float Viewport::getMaxDepth ( ) const
overridevirtualnoexcept

Gets the maximum depth of the viewport.

Implements LiteFX::Rendering::IViewport.

◆ getMinDepth()

Float Viewport::getMinDepth ( ) const
overridevirtualnoexcept

Gets the minimum depth of the viewport.

Implements LiteFX::Rendering::IViewport.

◆ getRectangle()

RectF Viewport::getRectangle ( ) const
overridevirtualnoexcept

Gets the rectangle that defines the dimensions of the viewport.

Implements LiteFX::Rendering::IViewport.

◆ setMaxDepth()

void Viewport::setMaxDepth ( const Float depth) const
overridevirtualnoexcept

◆ setMinDepth()

void Viewport::setMinDepth ( const Float depth) const
overridevirtualnoexcept

◆ setRectangle()

void Viewport::setRectangle ( const RectF rectangle)
overridevirtualnoexcept

Sets the rectangle that defines the dimensions of the viewport.

Implements LiteFX::Rendering::IViewport.