| 111 | } |
| 112 | |
| 113 | void 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 | |
| 125 | void plotCircle(int xm, int ym, int r,const std::function<void(int,int)>& setPixel) |
| 126 | { |