Since rendering paths with
juce::Graphics hasn’t been performant enough for my use case, and modern OpenGL doesn’t support drawing thick lines, I wrote Polyline2D, a library to generate a 2D mesh from a set of points.
This way, you can render thick paths blazingly fast using OpenGL!
Here’s what it looks like:
For demonstration purposes, the generated mesh is once rendered in wireframe mode (light green), and once in fill mode (transparent green).
The red points show the input points.
It supports all join and end cap styles that JUCE supports as well.
For an example JUCE application, see Polyline2DExample.