SPARK  0.1.0
A general purpose game engine written in C++.
Loading...
Searching...
No Matches
spark::render::IViewport Class Referenceabstract

Interface representing a viewport. More...

#include <Viewport.h>

Inheritance diagram for spark::render::IViewport:
spark::render::Viewport

Public Member Functions

virtual math::Rectangle< float > rectangle () const noexcept=0
 Gets the rectangle defining the dimensions of the viewport.
 
virtual void setRectangle (const math::Rectangle< float > &rectangle) noexcept=0
 Sets the rectangle defining the dimensions of the viewport.
 
virtual float minDepth () const noexcept=0
 Get the minimum depth of the viewport.
 
virtual void setMinDepth (float min_depth) noexcept=0
 Sets the minimum depth of the viewport.
 
virtual float maxDepth () const noexcept=0
 Gets the maximum depth of the viewport.
 
virtual void setMaxDepth (float max_depth) noexcept=0
 Sets the maximum depth of the viewport.
 

Detailed Description

Interface representing a viewport.

Member Function Documentation

◆ maxDepth()

virtual float spark::render::IViewport::maxDepth ( ) const
nodiscardpure virtualnoexcept

Gets the maximum depth of the viewport.

Returns
The maximum depth of the viewport.

Implemented in spark::render::Viewport.

◆ minDepth()

virtual float spark::render::IViewport::minDepth ( ) const
nodiscardpure virtualnoexcept

Get the minimum depth of the viewport.

Returns
The minimum depth of the viewport.

Implemented in spark::render::Viewport.

◆ rectangle()

virtual math::Rectangle< float > spark::render::IViewport::rectangle ( ) const
nodiscardpure virtualnoexcept

Gets the rectangle defining the dimensions of the viewport.

Returns
A math::Rectangle<float> representing the viewport.

Implemented in spark::render::Viewport.

◆ setMaxDepth()

virtual void spark::render::IViewport::setMaxDepth ( float max_depth)
pure virtualnoexcept

Sets the maximum depth of the viewport.

Parameters
max_depthThe new maximum depth of the viewport.

Implemented in spark::render::Viewport.

◆ setMinDepth()

virtual void spark::render::IViewport::setMinDepth ( float min_depth)
pure virtualnoexcept

Sets the minimum depth of the viewport.

Parameters
min_depthThe new minimum depth of the viewport.

Implemented in spark::render::Viewport.

◆ setRectangle()

virtual void spark::render::IViewport::setRectangle ( const math::Rectangle< float > & rectangle)
pure virtualnoexcept

Sets the rectangle defining the dimensions of the viewport.

Parameters
rectangleA math::Rectangle<float> representing the new viewport dimensions.

Implemented in spark::render::Viewport.