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

Interface representing a scissor. More...

#include <Scissor.h>

Inheritance diagram for spark::render::IScissor:
spark::render::Scissor

Public Member Functions

virtual math::Rectangle< float > rectangle () const noexcept=0
 Get the rectangle defining the scissor region.
 
virtual void setRectangle (const math::Rectangle< float > &rectangle) noexcept=0
 Set the rectangle defining the scissor region.
 

Detailed Description

Interface representing a scissor.

Member Function Documentation

◆ rectangle()

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

Get the rectangle defining the scissor region.

Returns
A math::Rectangle<float> defining the scissor region.

Implemented in spark::render::Scissor.

◆ setRectangle()

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

Set the rectangle defining the scissor region.

Parameters
rectangleA math::Rectangle<float> defining the scissor region.

Implemented in spark::render::Scissor.