Sam Lantinga
e73252548b
Added post build step to copy SDL and data files into the test projects
2011-01-19 11:35:54 -08:00
Sam Lantinga
2c7a66fb27
Removed extra space
2011-01-19 11:35:31 -08:00
Sam Lantinga
1507fa272f
Added XFlush() so changes happen immediately instead of waiting for the next event loop.
2011-01-19 10:14:11 -08:00
Sam Lantinga
7c00f79cb1
Greg Jandl to SDL
...
I *think* the patch below works correctly: sdl-config gets the -march
flag and SDL builds fine. Perhaps there's a better way to get the
-march flag into both CFLAGS and SDL_FLAGS w/o dragging along more
cruft, but adding it to BASE_CFLAGS seemed the best bet to my eyes.
2011-01-19 00:07:43 -08:00
Sam Lantinga
b3dd448c5c
Greg Jandl to SDL
...
I did some digging, and I think I've found a better solution. By
including some additional .m4 macros in the acinclude directory
(http://www.gnu.org/software/autoconf-archive/ax_check_compiler_flags.html ,
http://www.gnu.org/software/autoconf-archive/ax_gcc_archflag.html and
http://www.gnu.org/software/autoconf-archive/ax_gcc_x86_cpuid.html )
then using the patch below (same as previous patch + one line change
to configure.in), SDL will build correctly out of the box.
The arch can then be overridden by --with-gcc-arch=<arch> (most will
probably want to build with i686 there for general distribution) or
--without-gcc-arch, to disable setting the arch all together.
On my Atom netbook, I get -march=PentiumPro by default, which works
great, as does --with-gcc-arch=i686.
2011-01-18 22:40:45 -08:00
Sam Lantinga
5601ecaeae
Whoops, good catch from Greg Jandl
2011-01-18 22:10:37 -08:00
Sam Lantinga
67334dadbb
Fixed building with the latest iOS SDK (4.2)
2011-01-18 17:23:44 -08:00
Sam Lantinga
dd33ce32e7
Fixed building with the latest iOS SDK (4.2)
2011-01-18 16:55:03 -08:00
Sam Lantinga
5467b02793
Fixed missing source files in static library target
...
Fixed building SDL test programs
2011-01-18 16:47:14 -08:00
Sam Lantinga
06aed12790
Not all MinGW compilers have intrin.h, so we'll only use this with Visual Studio.
...
That's actually okay, since gcc has the builtin atomic intrinsics. :)
2011-01-18 15:07:53 -08:00
Sam Lantinga
c4fe663b76
Fixed building with the latest iOS SDK (4.2)
2011-01-18 15:02:59 -08:00
Sam Lantinga
7083935583
Fixed building with the latest iOS SDK (4.2)
2011-01-18 15:00:56 -08:00
Sam Lantinga
c53fea3bcc
Fixed build against 10.4 SDK
2011-01-18 14:57:39 -08:00
Sam Lantinga
d16468c1cb
Fixed compiler error with the latest Xcode package
2011-01-18 14:26:30 -08:00
Sam Lantinga
e8d5bc7c67
Updated the snapshot script for Mercurial
2011-01-18 14:21:10 -08:00
Sam Lantinga
42a3df6fd3
Michael gave permission to use his test code
2011-01-18 10:57:28 -08:00
Sam Lantinga
0928bae0cd
SDL_atomic.h is safe to include in the main header now.
2011-01-17 14:08:00 -08:00
Sam Lantinga
b04eaeedc5
Fixed compiler warnings using Windows intrinsics
2011-01-17 14:07:15 -08:00
Sam Lantinga
cdb1bda300
Use compiler intrinsics on Windows
2011-01-17 14:05:43 -08:00
Sam Lantinga
6654cd07b3
Fixed compiler error
2011-01-17 14:05:14 -08:00
Sam Lantinga
f82346f528
Fixed compiler errors
2011-01-17 13:54:13 -08:00
Sam Lantinga
2216518b9a
Use compiler intrinsics, where available
2011-01-17 13:53:31 -08:00
Sam Lantinga
68afae139d
Use the portable intrinsic
2011-01-17 13:52:40 -08:00
Sam Lantinga
2bd8b29550
Added testatomic test project
2011-01-17 13:42:24 -08:00
Sam Lantinga
24cfae7d89
Minor documentation consistency cleanup
2011-01-17 09:09:15 -08:00
Sam Lantinga
ce2e619ac9
Fixed compiler warning
2011-01-16 17:48:04 -08:00
Sam Lantinga
264e590e65
Fixed compiler warning about symbol redefinition
2011-01-16 17:47:52 -08:00
Sam Lantinga
d428d9d5a1
Include windows.h in SDL_atomic.h by default, but don't include the atomic API in SDL.h
...
This allows all SDL code to take advantage of the atomic intrinsics on Windows, but doesn't cause applications just including SDL.h to pull in windows.h
2011-01-16 17:45:42 -08:00
Sam Lantinga
57d90f79d3
Don't hose code that isn't expecting a windows include
2011-01-16 15:31:09 -08:00
Sam Lantinga
b0e0f61c7e
Added native atomic operations for Windows, Mac OS X, and gcc compiler intrinsics.
...
Changed the CAS return value to bool, so it's efficient with OSAtomicCompareAndSwap32Barrier()
Added an atomic test adapted from code by Michael Davidsaver
2011-01-16 15:16:39 -08:00
Sam Lantinga
1bc8fe69ce
Updated the atomic API for better use cases
2011-01-15 12:41:59 -08:00
Sam Lantinga
4084438113
Added some missing config for the iPhone
2011-01-15 12:34:43 -08:00
Sam Lantinga
cab4e0652a
Added "mouse" support for the Android touch screen
2011-01-13 18:31:15 -08:00
Sam Lantinga
70c916a415
Cleaned up internal accelerometer interface
2011-01-13 18:03:56 -08:00
Sam Lantinga
0ce4324420
Make sure we shut down the app if SDL_main() returns instead of exiting.
2011-01-13 17:13:00 -08:00
Sam Lantinga
9fa1d4876d
The window is changed to reflect the actual screen dimensions, for now.
...
Implemented SDL_SetWindowTitle(), which turned out to be fairly complex
2011-01-13 15:10:17 -08:00
Sam Lantinga
82e985a8ba
Removed code from GetPrimtiveArrayCritical() experiment
2011-01-13 12:36:59 -08:00
Sam Lantinga
5b1882ee17
Fixed audio buffer lifecycle and implemented audio shutdown
2011-01-13 12:32:55 -08:00
Sam Lantinga
4f9db82a4c
Working audio implementation contributed by Joseph Lunderville
2011-01-13 11:14:20 -08:00
Sam Lantinga
a409f9858f
Added missing header
2011-01-13 09:15:51 -08:00
Sam Lantinga
738f971adb
Implemented translation from Android keycodes to SDL scancodes
2011-01-12 21:21:21 -08:00
Sam Lantinga
6e69fae33e
Added an extra line for consistency
2011-01-12 21:21:08 -08:00
Sam Lantinga
27dd18d80a
Fixed video mode format for unknown surface format
2011-01-12 19:33:29 -08:00
Sam Lantinga
d6dc10e868
Improved error message for unsupported texture format
2011-01-12 19:33:04 -08:00
Sam Lantinga
0fa1d9fe61
More Android cleanup:
...
* Formalized the interface with Java methods in SDL_android.h
* We don't need the feature system, at least right now
* Fixed waiting for the SDLMain thread
2011-01-12 17:53:06 -08:00
Sam Lantinga
f9f37e83fe
Whoops, need to pass that SDL format into native code
2011-01-12 16:35:03 -08:00
Sam Lantinga
36207555fb
Set blend mode for textures that were created from surfaces with a colorkey
2011-01-12 15:58:53 -08:00
Sam Lantinga
ce6f23bcc6
Renderer didn't advertise texture format SDL_PIXELFORMAT_ABGR8888
2011-01-12 15:42:26 -08:00
Sam Lantinga
aaa6a02fb0
Fixed blue-red channel swap in OpenGL ES 16-bit texture formats
2011-01-12 15:23:19 -08:00
Sam Lantinga
a4231ad5d8
Support the new 16-bit pixel formats in SDL_CreateTextureFromSurface()
2011-01-12 15:22:29 -08:00