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

Method removeTextureForKey

core/renderer/TextureCache.cpp:700–715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

698}
699
700void TextureCache::removeTextureForKey(std::string_view textureKeyName)
701{
702 auto it = _textures.find(textureKeyName);
703
704 if (it == _textures.end())
705 {
706 auto key = FileUtils::getInstance()->fullPathForFilename(textureKeyName);
707 it = _textures.find(key);
708 }
709
710 if (it != _textures.end())
711 {
712 it->second->release();
713 _textures.erase(it);
714 }
715}
716
717Texture2D* TextureCache::getTextureForKey(std::string_view textureKeyName) const
718{

Callers 8

createStatsLabelMethod · 0.80
createDetailDlgMethod · 0.80
~CaptureScreenTestMethod · 0.80
onCapturedMethod · 0.80
~CaptureNodeTestMethod · 0.80
onEnterMethod · 0.80
TexturePVRv3PremultMethod · 0.80
onEnterMethod · 0.80

Calls 6

getInstanceFunction · 0.85
fullPathForFilenameMethod · 0.80
findMethod · 0.45
endMethod · 0.45
releaseMethod · 0.45
eraseMethod · 0.45

Tested by 7

createDetailDlgMethod · 0.64
~CaptureScreenTestMethod · 0.64
onCapturedMethod · 0.64
~CaptureNodeTestMethod · 0.64
onEnterMethod · 0.64
TexturePVRv3PremultMethod · 0.64
onEnterMethod · 0.64