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

Method getSpriteSheet

core/2d/SpriteFrameCache.cpp:462–469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460}
461
462std::shared_ptr<SpriteSheet> SpriteFrameCache::getSpriteSheet(std::string_view filePath)
463{
464 auto it = _spriteSheets.find(computeHash(filePath));
465 if (it != _spriteSheets.end())
466 return it->second;
467
468 return nullptr;
469}
470
471} // namespace ax

Callers 1

Calls 3

computeHashFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected