will spring migrate to sdl 2? It was finally released!

will spring migrate to sdl 2? It was finally released!

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

will spring migrate to sdl 2? It was finally released!

Post by jamerlan »

From release notes letter:

After many years in development, SDL 2.0.0 has finally been released!
http://www.libsdl.org/download-2.0.php
http://www.libsdl.org/projects/SDL_image/
http://www.libsdl.org/projects/SDL_mixer/
http://www.libsdl.org/projects/SDL_net/
http://www.libsdl.org/projects/SDL_ttf/

Ryan has put together an introduction to migrating your existing SDL application to 2.0:
http://wiki.libsdl.org/moin.fcg/MigrationGuide

More extensive documentation can be found on the community supported wiki:
http://wiki.libsdl.org/

Valve uses SDL 2.0 for game controller support and sundry other things in Steam, and the new release will be going into the Steam Linux Runtime in the next day or so.

These are the most important new features in SDL 2.0:

Full 3D hardware acceleration
Support for OpenGL 3.0+ in various profiles (core, compatibility, debug, robust, etc)
Support for OpenGL ES
Support for multiple windows
Support for multiple displays
Support for multiple audio devices
Android and iOS support
Simple 2D rendering API that can use Direct3D, OpenGL, OpenGL ES, or software rendering behind the scenes
Force Feedback available on Windows, Mac OS X and Linux
XInput and XAudio2 support for Windows
Atomic operations
Power management (exposes battery life remaining, etc)
Shaped windows
32-bit audio (int and float)
Simplified Game Controller API (the Joystick API is still here, too!)
Touch support (multitouch, gestures, etc)
Better fullscreen support
Better keyboard support (scancodes vs keycodes, etc).
Message boxes
Clipboard support
Basic Drag'n'Drop support
Proper unicode input and IME support
A really powerful assert macro
Lots of old annoyances from 1.2 are gone
Many other things!
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: will spring migrate to sdl 2? It was finally released!

Post by gajop »

jamerlan wrote: Proper unicode input and IME support
finally: http://springrts.com/phpbb/viewtopic.php?f=12&t=29875
Wouldn't solve the hardest parts, but still quite important for unicode. Although I pretty much gave up on doing the font thing...
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: will spring migrate to sdl 2? It was finally released!

Post by Kloot »

Eventually probably.
Support for multiple windows
Support for multiple displays
These are the most useful additions, the rest are either not relevant for Spring or just "meh" (rectangles >>> shaped windows, mouse + keyboard >>> touch support, ...).
Post Reply

Return to “Engine”