LiteFX 0.4.1.2025
Computer Graphics Engine
Loading...
Searching...
No Matches
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.
 
virtual void setRectangle (const RectF &rectangle) noexcept=0
 Sets the rectangle that defines the dimensions of the viewport.
 
virtual float getMinDepth () const noexcept=0
 Gets the minimum depth of the viewport.
 
virtual void setMinDepth (Float depth) const noexcept=0
 Sets the minimum depth of the viewport.
 
virtual float getMaxDepth () const noexcept=0
 Gets the maximum depth of the viewport.
 
virtual void setMaxDepth (Float depth) const noexcept=0
 Sets the maximum depth of the viewport.
 

Protected Member Functions

 IViewport () noexcept=default
 
 IViewport (const IViewport &)=default
 
 IViewport (IViewport &&) noexcept=default
 
IViewportoperator= (const IViewport &)=default
 
IViewportoperator= (IViewport &&) noexcept=default
 

Detailed Description

Interface for a viewport.

Constructor & Destructor Documentation

◆ IViewport() [1/3]

LiteFX::Rendering::IViewport::IViewport ( )
protecteddefaultnoexcept

◆ IViewport() [2/3]

LiteFX::Rendering::IViewport::IViewport ( const IViewport & )
protecteddefault

◆ IViewport() [3/3]

LiteFX::Rendering::IViewport::IViewport ( IViewport && )
protecteddefaultnoexcept

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

◆ operator=() [1/2]

IViewport & LiteFX::Rendering::IViewport::operator= ( const IViewport & )
protecteddefault

◆ operator=() [2/2]

IViewport & LiteFX::Rendering::IViewport::operator= ( IViewport && )
protecteddefaultnoexcept

◆ setMaxDepth()

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

Sets the maximum depth of the viewport.

Parameters
depthThe maximum depth of the viewport.

Implemented in LiteFX::Rendering::Viewport.

◆ setMinDepth()

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

Sets the minimum depth of the viewport.

Parameters
depthThe minimum depth of the viewport.

Implemented in LiteFX::Rendering::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.