MCPcopy Create free account
hub / github.com/VCVRack/Rack / drawLayer

Method drawLayer

src/app/LightWidget.cpp:18–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17
18void 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
30void LightWidget::drawBackground(const DrawArgs& args) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected