LiteFX 0.3.1.2022
Computer Graphics Engine
LiteFX::Rendering::IViewport Class Referenceabstract

Interface for a viewport. More...

#include <rendering_api.hpp>

Inherited by LiteFX::Rendering::Viewport.

Public Member Functions

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

Interface for a viewport.

Constructor & Destructor Documentation

◆ ~IViewport()

virtual LiteFX::Rendering::IViewport::~IViewport ( )
virtualdefaultnoexcept

Member Function Documentation

◆ getMaxDepth()

virtual float LiteFX::Rendering::IViewport::getMaxDepth ( ) const
pure virtualnoexcept

Gets the maximum depth of the viewport.

Returns
The maximum depth of the viewport.

Implemented in LiteFX::Rendering::Viewport.

◆ getMinDepth()

virtual float LiteFX::Rendering::IViewport::getMinDepth ( ) const
pure virtualnoexcept

Gets the minimum depth of the viewport.

Returns
The minimum depth of the viewport.

Implemented in LiteFX::Rendering::Viewport.

◆ getRectangle()

virtual RectF LiteFX::Rendering::IViewport::getRectangle ( ) const
pure virtualnoexcept

Gets the rectangle that defines the dimensions of the viewport.

Returns
The rectangle that defines the dimensions of the viewport.

Implemented in LiteFX::Rendering::Viewport.

◆ setMaxDepth()

virtual void LiteFX::Rendering::IViewport::setMaxDepth ( const float &  depth) const
pure virtualnoexcept

Sets the maximum depth of the viewport.

Parameters
depthThe maximum depth of the viewport.

◆ setMinDepth()

virtual void LiteFX::Rendering::IViewport::setMinDepth ( const float &  depth) const
pure virtualnoexcept

Sets the minimum depth of the viewport.

Parameters
depthThe minimum depth of the viewport.

◆ setRectangle()

virtual void LiteFX::Rendering::IViewport::setRectangle ( const RectF rectangle)
pure virtualnoexcept

Sets the rectangle that defines the dimensions of the viewport.

Parameters
rectangleThe rectangle that defines the dimensions of the viewport.

Implemented in LiteFX::Rendering::Viewport.