Skip to content

raisin::ScopedScissor ​

class · #include <rayrai/GlStateGuard.hpp>

RAII guard that enables the scissor test with a box and restores the previous test state and box.

Constructors & destructor ​

ScopedScissor ​

cpp
ScopedScissor(int x, int y, int width, int height)

Parameters

ParameterDescription
xLeft.
yBottom.
widthWidth.
heightHeight.
cpp
ScopedScissor(const ScopedScissor &) = delete

~ScopedScissor ​

cpp
~ScopedScissor()

Public member functions ​

operator= ​

cpp
ScopedScissor &operator=(const ScopedScissor &) = delete

RaiSim — physics for robotics and AI.