cocos2d/cocos2d-x — pull request #3094 by sergey-shambir (2013-07-08 03:21:37+00:00)
Title: Linux: added SDL backend as alternative to GLFW.

Summary:
GLFW v.3 released in June. New version breaks API without real need:
http://cocos2d-x.org/boards/6/topics/31277
Meanwhile SDL is very stable. SDL2 used in Steam Runtime and will be
part of Ubuntu SDK, it's supported by other distributions.

Completed:
- Window title now contains app name for both SDL and glfw
- OpenGL initialization and window handling with SDL
- Keyboard, IME emulation, mouse and touches support with SDL

Notes:
- SDL backend can be enabled by "make SDL=1" or by adding
"COCOS2D_USE_SDL = 1" to QtCreator project.
- SDL on X11 have no proper multitouch, but backend handles multitouch
events to support future Linux graphics.