nanovg
nanovg copied to clipboard
NVGpaints functions are context-dependent
Why does nvgLinearGradient need the NVGcontext to create a NVGpaint and nvgRGB(A)(f) doesn't?
In the code, the context isn't used in the creation of the structures.
Can't we remove the ctx argument from those functions?
I think it was chosen for API consistency.
Oh I see. Thank you anyway, I can still pass NULL as ctx, it works well. But then it's the same problem with fonts...
But it doesn't matter, I found a solution to my problem !