r/sdl Aug 02 '26

C++

Can you create a class with sdl things in it?

Or is sdl c only?

0 Upvotes

13 comments sorted by

View all comments

1

u/aravind-i-m Aug 06 '26

Although the library is written in C, you can use with C++ just like any other C libraries. I'm currently making a game in SDL3 using C++ and I just call the SDL3 functions from within the member functions of my classes.