MCPcopy Create free account
hub / github.com/ImageEngine/cortex / init

Method init

src/IECoreGL/State.cpp:199–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199void State::ScopedBinding::init( const State &s, bool bind )
200{
201 if( !bind )
202 {
203 return;
204 }
205
206 m_savedComponents.reserve( s.m_implementation->m_components.size() );
207
208 for( Implementation::ComponentMap::const_iterator it=s.m_implementation->m_components.begin(); it!=s.m_implementation->m_components.end(); it++ )
209 {
210 Implementation::ComponentMap::iterator cIt = m_currentState.m_implementation->m_components.find( it->first );
211 if( !cIt->second.override )
212 {
213 m_savedComponents.push_back( cIt->second.component );
214 it->second.component->bind();
215 cIt->second = it->second;
216 }
217 }
218}
219
220State::ScopedBinding::~ScopedBinding()
221{

Callers 15

test2Method · 0.45
testLookupffMethod · 0.45
setUpMethod · 0.45
State.pyFile · 0.45
FontTest.pyFile · 0.45
FontLoaderTest.pyFile · 0.45
PrimitiveTest.pyFile · 0.45
BufferTest.pyFile · 0.45

Calls 5

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
findMethod · 0.45
bindMethod · 0.45

Tested by 3

test2Method · 0.36
testLookupffMethod · 0.36
setUpMethod · 0.36