| 1293 | } |
| 1294 | |
| 1295 | void lightThread::work() |
| 1296 | { |
| 1297 | canvas.assign(canvas.size(),rgbf(0,0,0)); |
| 1298 | for(int i=myRect.first.x;i<myRect.second.x;i++) |
| 1299 | for(int j=myRect.first.y;j<myRect.second.y;j++) |
| 1300 | { |
| 1301 | doLight(i,j); |
| 1302 | } |
| 1303 | } |
| 1304 | |
| 1305 | void lightThread::combine() |
| 1306 | { |