MCPcopy Create free account
hub / github.com/ddnet/ddnet / Clear

Method Clear

src/game/map/map_renderer.cpp:9–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7const int LAYER_DEFAULT_TILESET = -1;
8
9void CMapRenderer::Clear()
10{
11 for(auto &pLayer : m_vpRenderLayers)
12 pLayer->Unload();
13 m_vpRenderLayers.clear();
14}
15
16void CMapRenderer::Load(ERenderType Type, CLayers *pLayers, IMapImages *pMapImages, IEnvelopeEval *pEnvelopeEval, std::optional<FRenderUploadCallback> RenderCallbackOptional)
17{

Callers

nothing calls this directly

Calls 1

UnloadMethod · 0.45

Tested by

no test coverage detected