Open Source Android Apps for Developers: libsdl-android

Cute Android: Open Source Android Apps for Developers: libsdl-android

Description
libsdl-android is the port of libSDL to Android – includes SDL 1.2 and SDL 1.3, SDL_mixer, SDL_image and bunch of other libs. Both SDL 1.2 and 1.3 have hardware acceleration, you may also use OpenGL ES with SDL. Several games are included as working examples. Unlike other libSDL ports around, it does not require root access to video device, and will produce .apk package that you may publish on Android Market (and sell them, the LGPL license allows closed-source apps, but you should release your AndroidAppSettings.cfg file). It is intended to be used to easily port your own C++ applications that use SDL library,
readme file describes all the steps required. No Java knowledge is necessary to use this lib. It requires Android NDK r4b and SDK 2.2 to compile, however it will run on Android 1.6 devices. Android 1.5 devices do not have OpenGL lib, but it’s still possible to port libSDL on them (but I probably won’t bother with this, only 16% of all Android devices are 1.5 or older).

Project Home
http://libsdl-android.sourceforge.net/

Project owners
pelya

Version
v1.6

Downloads
https://github.com/pelya/commandergenius/archives/sdl_android

QR code

Source Code
https://github.com/pelya/commandergenius

Bunch of compatibility settings is implemented:

* Commonly used video modes (320×240, 640×480 etc) – they will automatically stretch to the whole screen, however 640×480 in SW is slow.
* On-screen keyboard is available with arrow keys + 6 configurable buttons, transparent to the application. You may submit your own keyboard theme if you have some designer talent. Full-text on-screen QWERTY input is also available, toggled with special 7-th button.
* Two-button mouse emulation, via multitouch event or screen pressure, if device supports that.
* Accelerometer as arrow keys or joystick
* Trackball support

About Simple DirectMedia Layer
Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer. It is used by MPEG playback software, emulators, and many popular games, including the award winning Linux port of “Civilization: Call To Power.”

SDL supports Linux, Windows, Windows CE, BeOS, MacOS, Mac OS X, FreeBSD, NetBSD, OpenBSD, BSD/OS, Solaris, IRIX, and QNX. The code contains support for AmigaOS, Dreamcast, Atari, AIX, OSF/Tru64, RISC OS, SymbianOS, and OS/2, but these are not officially supported.

SDL is written in C, but works with C++ natively, and has bindings to several other languages, including Ada, C#, D, Eiffel, Erlang, Euphoria, Guile, Haskell, Java, Lisp, Lua, ML, Objective C, Pascal, Perl, PHP, Pike, Pliant, Python, Ruby, Smalltalk, and Tcl.

SDL is distributed under GNU LGPL version 2. This license allows you to use SDL freely in commercial programs as long as you link with the dynamic library.

ScreenShots

Posted by Cute Android

Related posts:

  1. Open Source Android Apps for Developers: Libgdx
  2. Ten Open Source Android (2D or 3D) Game Engine for Android Developers
  3. Open Source Android Apps for Developers: Forget3d
  4. Open Source Android (2D or 3D) Game Engine for Android Developers Plus
  5. Open Source Android Apps for Developers: Glesquake (Android Game)
  6. Open Source Android Apps for Developers: Openttd-android (Android Game)
  7. Open Source Android Apps for Developers: jPCT-AE (Android Game 3D Engine)
  8. Open Source Android Apps for Developers: facebook-android-sdk
  9. Open Source Android Apps for Developers: YoghurtGum (Android Game Engine)
  10. Open Source Android Apps for Developers: AndEngine (Android Game Engine)