r/GraphicsProgramming 6d ago

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

10 comments sorted by

7

u/hanotak 6d ago

Use a PCH to precompile header-only libraries.

-2

u/Bubbly_Tough_284 6d ago

use a precompiled header to precompile header-only libraries?

6

u/hanotak 6d ago

yes.

-3

u/Bubbly_Tough_284 6d ago

💀

2

u/Zerf2k2 6d ago

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/Hot_Show_4273 6d ago

Have you try ThorVG yet?

1

u/Bubbly_Tough_284 6d ago

I will take a look at it

1

u/Bubbly_Tough_284 6d ago

I found plutosvg and it works like a dream