SDL2 backend
Opened this issue · 1 comments
Deleted user commented
Agar currently has SDL 1.2 backend. I think you choose it because SDL 1.2 is more portable than the new SDL2 but it's no longer to be the case. SDL2 now available from Windows to Linux, BSDs, SunOS and even HaikuOS. It's pretty stable now.
What do you think about a SDL2 backend?
JulNadeauCA commented
Yes, the addition of a standard SDL2 driver is definitely one of the top items planned for the upcoming 1.7 release (https://github.com/JulNadeauCA/libagar/blob/master/CHANGELOG.md#unreleased).
The code that needs to be ported is in drv_sdl_common.c, drv_sdlfb.c and drv_sdlgl.c. The main difference will be that SDL2 being multi-window, the SDL2 driver class will be derived from AG_DriverMw as opposed to AG_DriverSw.