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

Method createTexture

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

Source from the content-addressed store, hash-verified

323 }
324
325 ITexture* OgreRenderManager::createTexture(const std::string& _name)
326 {
327 MapTexture::const_iterator item = mTextures.find(_name);
328 MYGUI_PLATFORM_ASSERT(item == mTextures.end(), "Texture '" << _name << "' already exist");
329
330 OgreTexture* texture = new OgreTexture(_name, OgreDataManager::getInstance().getGroup());
331 mTextures[_name] = texture;
332 return texture;
333 }
334
335 void OgreRenderManager::destroyTexture(ITexture* _texture)
336 {

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected