MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / cachePolygons

Method cachePolygons

src/Geoscape/Globe.cpp:937–940  ·  view source on GitHub ↗

* Takes care of pre-calculating all the polygons currently visible * on the globe and caching them so they only need to be recalculated * when the globe is actually moved. */

Source from the content-addressed store, hash-verified

935 * when the globe is actually moved.
936 */
937void Globe::cachePolygons()
938{
939 cache(_game->getResourcePack()->getPolygons(), &_cacheLand);
940}
941
942/**
943 * Caches a set of polygons.

Callers

nothing calls this directly

Calls 2

getPolygonsMethod · 0.80
getResourcePackMethod · 0.45

Tested by

no test coverage detected