| 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 | { |