This class provides a simple guard for setting the active scissor area. More...
#include <Luminous/RenderContext.hpp>
Public Member Functions | |
| ScissorGuard (RenderContext &r, const Nimble::Recti &scissor) | |
| Construct a new guard. More... | |
| ScissorGuard (ScissorGuard &&rhs) | |
| Construct a guard by moving. More... | |
| ~ScissorGuard () | |
| Destructor. This function automatically calls RenderContext::popScissorRect(). | |
This class provides a simple guard for setting the active scissor area.
It will automatically pop the area in its destructor so the user doesn't need to remember to do it manually. It is equivalent to calling "RenderContext::pushScissorRect(const Nimble::Recti &)" and "RenderContext::popScissorRect"
|
inline |
Construct a new guard.
| r | render context |
|
inline |
Construct a guard by moving.
| rhs | guard to move |