| 16 | |
| 17 | |
| 18 | void LightWidget::drawLayer(const DrawArgs& args, int layer) { |
| 19 | if (layer == 1) { |
| 20 | // Use the formula `lightColor * (1 - dest) + dest` for blending |
| 21 | nvgGlobalCompositeBlendFunc(args.vg, NVG_ONE_MINUS_DST_COLOR, NVG_ONE); |
| 22 | drawLight(args); |
| 23 | drawHalo(args); |
| 24 | } |
| 25 | |
| 26 | Widget::drawLayer(args, layer); |
| 27 | } |
| 28 | |
| 29 | |
| 30 | void LightWidget::drawBackground(const DrawArgs& args) { |
nothing calls this directly
no outgoing calls
no test coverage detected