I use a lot of Paths in my GUIs to render frequency spectrums, audio waveforms, etc. and so I’d like to use OpenGL to render them since rendering them through the default Graphics engine eats up a lot of CPU.
However, the only examples I can find for using OpenGL in plug-ins seem to involve displaying 3D spinning teapots with nice shading, which isn’t really the asthetic I’m after. I simply want to render some basic 2D shapes.
So do I still need to write some GLSL to render my Paths or is there a simpler trick to have them rendered in OpenGL that I’m missing? Any advice or example projects would be much appreciated!
Here’s an example from my Spectrum Analyser plug-in which, as you can see, renders several complex paths with hundreds of points and fills with gradients - currently just rendering on the CPU: