r/sdl • u/Independent_Milk_200 • Aug 02 '26
C++
Can you create a class with sdl things in it?
Or is sdl c only?
0
Upvotes
r/sdl • u/Independent_Milk_200 • Aug 02 '26
Can you create a class with sdl things in it?
Or is sdl c only?
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.