Any interest in a bindings/wrapper for c++?

I’m doing this thing SDL3pp: SDL3pp

Inspired by the libSDL2pp, but for SDL3, I’m creating a wrapper that mostly makes the OO like structs and functions in C++ classes and methods. I also try to use C++ vocabulary types like optional, span, when it is possible.

Diverging from libSDL2pp:

  • here we don’t throw exceptions on failure;
  • for each resource we have versions with and without automatic freeing on destruction (eg SDL::Surface destroy automatically, but SDL::SurfaceRef does not);
  • it’s header only lib, I even have an amalgamated single header file download on the link above.

This still work in progress, but the 2d render based category and everything necessary to support it is more or less covered too. So it should be enough to see the design and general direction I’m going for.

I plan to continue working on it, but would like some feedback on what I already have and I specially welcome suggestions, like what parts should be priority next.

Have you checked out GitHub - TerensTare/SDL_parser: Write your own SDL bindings?

1 Like

Didn’t knew, but definitely going to check it out. I’m currently using some ad-hoc regex to get it going, but it is definitely worth it if I can delegate to a lib, thank you!