Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is There A C++ Wrapper / Binding For SDL? [closed]

I really have no problem with SDL in C , but it's kind of tiring. Using structs doing stuff without classes, or worse, having to wrap the functions up in a class yourself etc. I was wondering whether there was a good , mature , well-designed (i.e NO Macros , using templates and the STL) wrapper (binding?) for SDL?

like image 950
ApprenticeHacker Avatar asked Oct 09 '22 19:10

ApprenticeHacker


1 Answers

You could check out https://github.com/AMDmi3/libSDL2pp. It is C++11/14 binding for SDL2 and related libraries (SDL2_ttf, SDL2_image). Seems like it also satisfies your style requirements - it makes much use of modern C++ features and seem to generally provides safe and easy way of using SDL2 primitives.

like image 137
Elisey Avatar answered Oct 12 '22 11:10

Elisey