MCPcopy Create free account
hub / github.com/MyGUI/mygui / destroyTexture

Method destroyTexture

Platforms/Ogre/OgrePlatform/src/MyGUI_OgreRenderManager.cpp:335–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333 }
334
335 void OgreRenderManager::destroyTexture(ITexture* _texture)
336 {
337 if (_texture == nullptr)
338 return;
339
340 MapTexture::iterator item = mTextures.find(_texture->getName());
341 MYGUI_PLATFORM_ASSERT(item != mTextures.end(), "Texture '" << _texture->getName() << "' not found");
342
343 mTextures.erase(item);
344 delete _texture;
345 }
346
347 ITexture* OgreRenderManager::getTexture(const std::string& _name)
348 {

Callers

nothing calls this directly

Calls 3

findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected