Commit Graph

59 Commits

Author SHA1 Message Date
pelya d9ba40e397 Moved SDL to separate dir and renamed to sdl-1.3, added symlink to it from src dir 2010-07-13 18:55:59 +03:00
pelya 9d796c3983 Removed debug 2010-07-12 17:55:18 +03:00
pelya 2392cd8c54 Another fix for accelerometer 2010-07-12 16:50:35 +03:00
pelya 8ed9d899b4 Updated SDL 1.3 to rev hg-4510 2010-07-12 13:55:55 +03:00
pelya a497f62788 Prevent extra memcpy() if we're updating whole texture in GLES renderer 2010-07-12 12:20:38 +03:00
pelya cad2c8ff2a Final fix to accelerometer input 2010-07-09 18:50:43 +03:00
pelya fa534f2570 More fixes to accelerometer 2010-07-09 18:19:22 +03:00
pelya 048735ac4a Fixed accelerometer input 2010-07-09 17:43:46 +03:00
pelya 8895adf61e Fixed compilation 2010-07-07 14:03:14 +03:00
pelya bfbde14974 Updated SDL to revision hg-4485 2010-07-06 14:11:13 +03:00
pelya 99698187cf True HW acceleration for Alien Blaster - it now runs 45 FPS on ADP1,
and 30 FPS on HTC Evo (it could run faster but they limited max FPS in GL renderer).
See file SdlForwardCompat.h to have an idea how to make your SDL 1.2 app HW accelerated with SDL 1.3 -
it's a compilation of hacks but whatever.
2010-07-06 13:57:58 +03:00
pelya 1b140cd3f5 Added Android-specific RGBA4444 and RGBA5551 pixel formats 2010-07-06 11:57:21 +03:00
pelya 9327cba2a1 Correct resize algorithm without rounding errors 2010-07-06 11:56:05 +03:00
pelya 2b2248f27f TOTALLY STUPID BUG how could I lose 3 days debugging it. SDL is working perfeclty, that was the application crashing which could not load music file. 2010-07-01 18:48:00 +03:00
pelya cacfd5760f Allow more pixel formats to OpenGL ES renderer 2010-07-01 18:16:31 +03:00
pelya 09388a7599 Moved to NDK r4 and SDK 2.2, updated readme, still catching the crash in audio output with Android 2.2 - added lot of debug spam 2010-06-25 18:52:45 +03:00
pelya 09afe74eed Fixed horizontal screen orientation + resizing 2010-06-11 15:48:24 +03:00
pelya 80a6d34cd3 Fixed crash introduced by my prev commit 2010-06-10 18:56:52 +03:00
pelya 647d3eefa9 Added two new config options to ChangeAppSettings.sh - disable depth buffer in OpenGL renderer and enable auto screen resizing 2010-06-10 18:49:59 +03:00
pelya b12b52db57 Oops, fixed include 2010-06-10 18:49:15 +03:00
pelya dd853f111c Increase priority for audio thread to prevent warnings and errors about "CPU pegged" 2010-06-10 18:47:50 +03:00
pelya faa64c538c Moved screen resizing from buggy proxy renderer directly to SDL_video.c 2010-06-10 18:46:43 +03:00
pelya 3d66cd911a Fixed audio not playing, it still works only for Android 2.1 - 1.6 fails for unknown reason 2010-06-10 14:19:17 +03:00
pelya 91333e8bd4 Fixed single-threaded audio implementation. Curent code works with Android 2.1 but fails with 1.6. 2010-06-09 15:52:14 +03:00
pelya 3aa634d175 Made audio single-threaded - ITCRASHES nOW, and doesn't work with Android 1.6 2010-06-08 20:09:35 +03:00
pelya 3efc812191 Fixes for Android 1.6 - it still crashes on start 2010-06-08 16:15:22 +03:00
pelya 4fb87d803a Some fies to resizing renderer, it still fails for horizontal screen 2010-06-07 18:36:39 +03:00
pelya 3712818ec4 First working version of auto-resizing SDL renderer, application works with vertical screen but horizontal screen cut by half fo no reason 2010-06-07 16:29:59 +03:00
pelya 1b87935b70 Resizing proxy renderer implementation, did not test it yet 2010-06-04 18:56:00 +03:00
pelya 5f6fec3617 Fixed keyboard input not working, fixed accelerometer up/down swapped 2010-05-21 14:13:34 +03:00
pelya 96f845c824 Use accelerometer as arrow keys - not tested yet, added debug to input routines 2010-05-21 13:15:29 +03:00
pelya 0775db00bd Audio works somehow, but input does not 2010-05-20 19:04:08 +03:00
pelya fe9c56ce2f Fixed R and B channels swapped in pixelformat 2010-05-20 18:47:07 +03:00
pelya 8b5b153c8b Fixed video init 2010-05-20 18:37:11 +03:00
pelya b752d4798d Fixed audio 2010-05-20 18:10:15 +03:00
pelya d8efb80536 Moved to SDL 1.3, it compiles but DOES NOT WORK, audio is disabled 2010-05-20 14:39:14 +03:00
pelya b973f29b35 Splitted Java sources to many small files, fixed tabulation, splitted input source file from video in libSDL. 2010-05-18 11:14:30 +03:00
pelya 3ea94d2ba2 Yay, OpenGL is working! Updated readme. 2010-05-17 18:52:14 +03:00
pelya 4059cb46f1 THIS REVISION WILL NOT RUN! Added an own implementation of GLSurfaceView to launch native main() code from it. 2010-05-17 18:39:02 +03:00
pelya cac11c5812 Added glxgears demo to check OpenGL+SDL, but it does not work 2010-05-13 19:26:15 +03:00
pelya 21afcf1fee Added some code to support SDL+OpenGL 2010-05-13 17:36:38 +03:00
pelya 231e487212 Removed deprecated code 2010-05-13 16:01:53 +03:00
pelya 5cfa74a057 Removed debug spam, fixed issue in libstlport - seems that it cannot be linked dynamically because
it has some export symbols with length bigger than 128, and app hangs when trying to access them.
Fortunately libstlport has MIT-like license, so it can be linked to closed-source apps statically.
2010-05-13 14:54:11 +03:00
pelya 94df8e2921 Fixed Alien Blaster not working on simulation - I've added lot of debug spam, it should be removed.
The problem is in the least obvious place - the std::ostringstream output deadlocks for no reason -
see file project/jni/application/src/asstring.h.
The only reason I can think of is that previously I've has one big statically linked library,
and now libstlport and libapplication areseparate shared libraries. But why then all std::vectors etc work?
2010-05-12 19:49:48 +03:00
pelya 500d845cc6 Moved NativeInit() to separate sdl_main shared library so libapplication.so won't contain any java-specific code,
added SDL_image, libpng and libjpeg.
2010-05-11 12:50:50 +03:00
pelya f25dcd7164 Small fix to app resolution - game is not playable currently on Supersonic 2010-05-07 13:30:37 +03:00
pelya 24dce42157 Converted all libs from shared to static - it will allow closed-source apps to use LGPL-ed libsdl,
and will solve some cross-referencing problems, like SDL_init called from static constructors.
2010-05-06 18:46:42 +03:00
pelya bd017bb179 Added missing includes in global header 2010-05-06 15:00:04 +03:00
pelya 9d2ff4866f More tweaks to screen scrolling 2010-02-18 19:09:35 +02:00
pelya 0eb8918905 Added 640x480 virtual screen support scrolled via accelerometer 2010-02-18 19:02:17 +02:00