r/GraphicsProgramming • u/Bubbly_Tough_284 • Sep 04 '26
Question Is there a library for C that allows drawling SVG's onto SDL3 or SDL3_gpu that is not single header and is not bloated
I need a library for my game made in C that allows drawling onto SDL3 or SDL3_gpu that is not single header otherwise compile times are super long, and is not bloated like it does not use cario, thanks!
0
Upvotes
7
u/hanotak Sep 04 '26
Use a PCH to precompile header-only libraries.
1
u/Bubbly_Tough_284 Sep 04 '26
I found plutosvg and it works like a dream
1
u/mfabbri77 Sep 04 '26
https://www.amanithsvg.com/
1
u/Hot_Show_4273 Sep 04 '26
Have you try ThorVG yet?
2
u/Zerf2k2 Sep 04 '26
Just because a lib is a single header, doesn't mean you always need to include said header. I almost always make a small API around them, to simplify usage, and ease transition if I want to change them later. If you make your own small API, it's included in exactly one cpp file.
1
u/Connect-Warning7360 Sep 15 '26
https://github.com/thorvg/thorvg.toolkit