MCPcopy Create free account
hub / github.com/Tencent/tgfx / getTile

Method getTile

src/layers/TileCache.cpp:27–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27std::shared_ptr<Tile> TileCache::getTile(int tileX, int tileY) const {
28 auto key = TileKey(tileX, tileY);
29 auto result = tileMap.find(key);
30 return result != tileMap.end() ? result->second : nullptr;
31}
32
33std::vector<std::shared_ptr<Tile>> TileCache::getTilesUnderRect(const Rect& rect,
34 bool requireFullCoverage,

Callers 1

collectScreenTasksMethod · 0.80

Calls 3

TileKeyFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected