MCPcopy Create free account
hub / github.com/OGRECave/ogre / removeTextureUnitState

Method removeTextureUnitState

OgreMain/src/OgrePass.cpp:445–456  ·  view source on GitHub ↗

-----------------------------------------------------------------------

Source from the content-addressed store, hash-verified

443 }
444 //-----------------------------------------------------------------------
445 void Pass::removeTextureUnitState(unsigned short index)
446 {
447 OGRE_LOCK_MUTEX(mTexUnitChangeMutex);
448 assert (index < mTextureUnitStates.size() && "Index out of bounds");
449
450 TextureUnitStates::iterator i = mTextureUnitStates.begin() + index;
451 OGRE_DELETE *i;
452 mTextureUnitStates.erase(i);
453 _notifyNeedsRecompile();
454 _dirtyHash();
455 mContentTypeLookupBuilt = false;
456 }
457 //-----------------------------------------------------------------------
458 void Pass::removeAllTextureUnitStates(void)
459 {

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected