Status Update |
Paul Hunkin
Guest
|
As requested, a status update on my GSoC project to port SDL to Android
Initially I spent quite a while looking at various ways to achieve the port. While I had a plan in mind as to how everything would work before I started the project (based on C/GL code I'd previously written), unfortunately recent changes in Android 2.1+ meant this was no longer workable if we wanted a longer-term stable solution. After trying a few methods of structuring SDL apps we eventually settled on a system that the Android developers approved of and that would keep SDL application logic intact (keeping control of the main-loop in C, for example), and require no application-side code changes. At this point I can run various simple GLES-based applications, and process events (keyboard only at the moment, though I'm working on touch events now). While it did take an annoyingly long time to get this far, it should be a lot simpler from this point, as I am basically just connecting up bits of Java-side Android to SDL and vice-versa. So, the next major steps: - Coordinate with the other GSoC people who are managing the new multi-touch input system - Other events (screen orientation change, for example) - Implement the 2D (software/non-GL) drawing part of SDL. Various methods exist for doing this - using the safest/stablest I am restricted to some fairly slow methods on Android <2.2. In 2.2 I can map a Bitmap object from Java to C so I can draw directly to the screen, in versions before this I believe I will need to copy the generated framebuffer from C to Java every frame. - Port some non-trivial application(s). Suggestions welcome - Test on as many android devices as I can get my hands on. Any questions or feedback, feel free to ask - Paul _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||
|
Status Update |
Vittorio Giovara
Guest
|
this sounds like great stuff, keep it up
On Thu, Jul 8, 2010 at 2:25 PM, Paul Hunkin wrote:
SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||
|