Cortex  10.0.0-a4
Public Member Functions | List of all members
IECoreGL::State::ScopedBinding Class Reference

#include <State.h>

Inherits noncopyable.

Public Member Functions

 ScopedBinding (const State &s, State &currentState)
 
 ScopedBinding (const State &s, State &currentState, bool bind)
 As above, but does nothing if bind is false.
 
 ~ScopedBinding ()
 

Detailed Description

This class binds a State upon construction, and on destruction makes sure that the previous state is reverted to.

Constructor & Destructor Documentation

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.


The documentation for this class was generated from the following file: