Cortex
10.0.0-a4
|
#include <State.h>
Inherits noncopyable.
Public Member Functions | |
ScopedBinding (const State &s, State ¤tState) | |
ScopedBinding (const State &s, State ¤tState, bool bind) | |
As above, but does nothing if bind is false. | |
~ScopedBinding () | |
This class binds a State upon construction, and on destruction makes sure that the previous state is reverted to.
IECoreGL::State::ScopedBinding::ScopedBinding | ( | const State & | s, |
State & | currentState | ||
) |
Binds the state s, updating currentState to reflect the new bindings. It is the caller's responsibility to keep both arguments alive until after destruction of the ScopedBinding.
IECoreGL::State::ScopedBinding::~ScopedBinding | ( | ) |
Reverts the state changes and modifications to currentState made by the constructor.