Author Topic: Moving to SDL2?  (Read 3225 times)

Offline winterheart

  • Colonel
  • ****
  • Posts: 180
  • Fellow Squaddie
    • View Profile
Moving to SDL2?
« 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.

Offline volutar

  • Colonel
  • ****
  • Posts: 351
  • Vanilla digger & Quality assistant
    • View Profile
Re: Moving to SDL2?
« Reply #1 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.

Offline winterheart

  • Colonel
  • ****
  • Posts: 180
  • Fellow Squaddie
    • View Profile
Re: Moving to SDL2?
« Reply #2 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.

Offline yrizoud

  • Commander
  • *****
  • Posts: 1014
    • View Profile
Re: Moving to SDL2?
« Reply #3 on: February 10, 2015, 11:57:00 am »
SDL2 is still pretty young and not as well-finished as SDL 1.2