MCPcopy Create free account
hub / github.com/axmolengine/axmol / removeTexture

Method removeTexture

core/renderer/TextureCache.cpp:680–698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

678}
679
680void TextureCache::removeTexture(Texture2D* texture)
681{
682 if (!texture)
683 {
684 return;
685 }
686
687 for (auto it = _textures.cbegin(); it != _textures.cend(); /* nothing */)
688 {
689 if (it->second == texture)
690 {
691 it->second->release();
692 it = _textures.erase(it);
693 break;
694 }
695 else
696 ++it;
697 }
698}
699
700void TextureCache::removeTextureForKey(std::string_view textureKeyName)
701{

Callers 4

loadSpriteFramesMethod · 0.80
removeUsedTextureMethod · 0.80
onEnterMethod · 0.80
addImageToDemoFunction · 0.80

Calls 5

cbeginMethod · 0.45
cendMethod · 0.45
releaseMethod · 0.45
eraseMethod · 0.45
removeMethod · 0.45

Tested by 4

loadSpriteFramesMethod · 0.64
removeUsedTextureMethod · 0.64
onEnterMethod · 0.64
addImageToDemoFunction · 0.64