MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / unload

Method unload

Source/Cache/TextureCache.cpp:225–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225bool TextureCache::unload(Texture2D* texture) {
226 for (auto it = _textures.begin(); it != _textures.end(); ++it) {
227 if (it->second == texture) {
228 _textures.erase(it);
229 return true;
230 }
231 }
232 return false;
233}
234
235bool TextureCache::unload(String filename) {
236 std::string fullPath = SharedContent.getFullPath(filename);

Callers

nothing calls this directly

Calls 7

getFullPathMethod · 0.80
findMethod · 0.65
clearMethod · 0.65
beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected