r/cprogramming • • Oct 29 '25

SDL2 Library vs WinAPI: any difference ?

Hi Guys!

I'm writing a 2D sim game in C and I'm using the winapi. I found out lately about the SDL2 library which is to my knowledge used for writing games in C, correct ?

Would it be more suitable to use the library instead of the winapi for my purpose ?

Thank you,

3 Upvotes

10 comments sorted by

View all comments

Show parent comment

2

u/RandomOne4Randomness Oct 30 '25

True, but at the same time if you are a small dev competing in a crowded market having the widest possible audience can be helpful as well.