raisin::ScopedCapability
class · #include <rayrai/GlStateGuard.hpp>
RAII guard that enables or disables a GL capability and restores its previous state.
Constructors & destructor
ScopedCapability
cpp
ScopedCapability(gl::GLenum capability, bool enabled)Parameters
| Parameter | Description |
|---|---|
capability | glEnable/glDisable capability. |
enabled | State to set for the guard's lifetime. |
~ScopedCapability
cpp
~ScopedCapability()