MCPcopy Create free account
hub / github.com/DFHack/dfhack / clear

Method clear

plugins/rendermax/renderer_light.cpp:267–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265 return blendMax(a,b);
266}
267void lightingEngineViewscreen::clear()
268{
269 lightMap.assign(lightMap.size(),rgbf(1,1,1));
270 std::lock_guard<std::mutex> guard{myRenderer->dataMutex};
271 if(lightMap.size()==myRenderer->lightGrid.size())
272 {
273 std::swap(myRenderer->lightGrid,lightMap);
274 myRenderer->invalidate();
275 }
276}
277void lightingEngineViewscreen::calculate()
278{
279 if(lightMap.size()!=myRenderer->lightGrid.size())

Callers 8

ResetMapHashesFunction · 0.45
parseMaterialsMethod · 0.45
parseSpecialMethod · 0.45
parseItemsMethod · 0.45
parseCreaturesMethod · 0.45
parseBuildingsMethod · 0.45
shutdownMethod · 0.45

Calls 3

rgbfClass · 0.85
sizeMethod · 0.45
invalidateMethod · 0.45

Tested by

no test coverage detected