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

Method reinit

plugins/rendermax/renderer_light.cpp:113–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void lightingEngineViewscreen::reinit()
114{
115 if(!gps)
116 return;
117 w=gps->dimx;
118 h=gps->dimy;
119 size_t size=w*h;
120 lightMap.resize(size,rgbf(1,1,1));
121 ocupancy.resize(size);
122 lights.resize(size);
123}
124
125void plotCircle(int xm, int ym, int r,const std::function<void(int,int)>& setPixel)
126{

Callers

nothing calls this directly

Calls 2

rgbfClass · 0.85
resizeMethod · 0.45

Tested by

no test coverage detected