Hi all,
I need to create a path and than fill + stroke it. Here’s my basic usage:
void draw(const DrawArgs &args) override {
float y = 10.0f;
nvgBeginPath(args.vg);
nvgStrokeWidth(args.vg, 1.0);
nvgMoveTo(args.vg, 0.0f, 0.0f + y);
for (int x = 0; x < 100; x++) {
nvgLineTo(args.vg, 0.0f + (float)x, 0.0f + y);
}
nvgLineTo(args.vg, 0.0f, 0.0f + y);
nvgFill(args.vg);
nvgStroke(args.vg);
nvgClosePath(args.vg);
}
In the case the path will be “0” height (it can be; above I just extremize it to show you the problem), if I place my module and over it I open the Context Menu from another module, I can see the draw path “above” the context menu:
Why this? nvg bug?