OpenXcom Forum

Contributions => Programming => Topic started by: winterheart on February 10, 2015, 08:48:35 am

Title: Moving to SDL2?
Post by: winterheart on February 10, 2015, 08:48:35 am
Hello all.

What do you think about moving to SDL2 from legacy 1.2? All additional libraries (sdl-mixer, sdl-image, sdl-gfx, ...) already supports 2.0. As benefit we gain wider platform support (Android guys will be pleased so much) and some minor enhancements (for example, sdl-image now supports Save_PNG() function at last).

Of course, SDL 2 have incompatible API with 1.2 (mostly main window initialization and input handling), but I believe, migration should be relatively easy.
Title: Re: Moving to SDL2?
Post by: volutar on February 10, 2015, 09:04:56 am
android port already uses sdl2. essentially it doesnt makr much difference except for 2 things: 1) rendering speed is 2 times slower. 2). controls are touch device friendly.
Title: Re: Moving to SDL2?
Post by: winterheart on February 10, 2015, 09:18:35 am
They have port, indeed. And I want to provide them direct support for new input devices with minimal as possible code changes. In another words, I want merge their changes back to main code.
Title: Re: Moving to SDL2?
Post by: yrizoud on February 10, 2015, 11:57:00 am
SDL2 is still pretty young and not as well-finished as SDL 1.2