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

Implements a scissor. More...

#include <rendering_api.hpp>

Inherits LiteFX::Rendering::IScissor.

Classes

class  ScissorImpl
 

Public Member Functions

 Scissor (const RectF &scissorRect={ })
 Initializes a new scissor. More...
 
 Scissor (Scissor &&) noexcept=delete
 
 Scissor (const Scissor &) noexcept=delete
 
virtual ~Scissor () noexcept
 
virtual RectF getRectangle () const noexcept override
 Gets the rectangle that defines the scissor region. More...
 
virtual void setRectangle (const RectF &rectangle) noexcept override
 Sets the rectangle that defines the scissor region. More...
 
- Public Member Functions inherited from LiteFX::Rendering::IScissor
virtual ~IScissor () noexcept=default
 
virtual RectF getRectangle () const noexcept=0
 Gets the rectangle that defines the scissor region. More...
 
virtual void setRectangle (const RectF &rectangle) noexcept=0
 Sets the rectangle that defines the scissor region. More...
 

Detailed Description

Implements a scissor.

Constructor & Destructor Documentation

◆ Scissor() [1/3]

Scissor::Scissor ( const RectF scissorRect = { })
explicit

Initializes a new scissor.

Parameters
scissorRectThe rectangle that defines the scissor region.

◆ Scissor() [2/3]

LiteFX::Rendering::Scissor::Scissor ( Scissor &&  )
deletenoexcept

◆ Scissor() [3/3]

LiteFX::Rendering::Scissor::Scissor ( const Scissor )
deletenoexcept

◆ ~Scissor()

Scissor::~Scissor ( )
virtualdefaultnoexcept

Member Function Documentation

◆ getRectangle()

RectF Scissor::getRectangle ( ) const
overridevirtualnoexcept

Gets the rectangle that defines the scissor region.

Implements LiteFX::Rendering::IScissor.

◆ setRectangle()

void Scissor::setRectangle ( const RectF rectangle)
overridevirtualnoexcept

Sets the rectangle that defines the scissor region.

Implements LiteFX::Rendering::IScissor.