![]() |
Cinder
0.9.1
|
#include <Context.h>
Public Member Functions | |
ScopedEnableContext (Context *context) | |
ScopedEnableContext (Context *context, bool enable) | |
~ScopedEnableContext () | |
RAII-style utility class to set a Context's enabled state and have it restored at the end of the current scope block.
cinder::audio::ScopedEnableContext::ScopedEnableContext | ( | Context * | context | ) |
Constructs an object that will store context's enabled state and restore it at the end of the current scope.
cinder::audio::ScopedEnableContext::ScopedEnableContext | ( | Context * | context, |
bool | enable | ||
) |
Constructs an object that will set context's enabled state to enable and restore it to the original state at the end of the current scope.
cinder::audio::ScopedEnableContext::~ScopedEnableContext | ( | ) |