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

Method get

Source/Cache/TextureCache.cpp:99–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99Texture2D* TextureCache::get(String filename) {
100 std::string fullPath = SharedContent.getFullPath(filename);
101 auto it = _textures.find(fullPath);
102 if (it != _textures.end()) {
103 return it->second;
104 }
105 return nullptr;
106}
107
108static void releaseImage(void* _ptr, void* _userData) {
109 DORA_UNUSED_PARAM(_ptr);

Callers

nothing calls this directly

Calls 3

getFullPathMethod · 0.80
findMethod · 0.65
endMethod · 0.45

Tested by

no test coverage detected