Skip to content

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

ParameterDescription
capabilityglEnable/glDisable capability.
enabledState to set for the guard's lifetime.

~ScopedCapability ​

cpp
~ScopedCapability()

RaiSim — physics for robotics and AI.