There’s a OpenGL-ish gpu graphics library (who’s name I can’t currently remember) that’s in mesa, but not built by default in most distros, and IIRC is also supported on raspberrypi.
I played with it a bit, wrote a python wrapper for it, borked a fedora install trying to get real gpu support, fun times all around. Seems nobody cares about an accelerated vector graphics library.