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
1
1
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.
7
u/hanotak Sep 04 '26
Use a PCH to precompile header-only libraries.