Sam Lantinga
6f14a76111
Added space in the common state structure for render targets
2013-11-15 22:01:58 -08:00
Ryan C. Gordon
30c46bacc8
Renamed things named after BeOS to be named after Haiku instead.
...
--HG--
rename : src/audio/baudio/SDL_beaudio.cc => src/audio/haiku/SDL_haikuaudio.cc
rename : src/audio/baudio/SDL_beaudio.h => src/audio/haiku/SDL_haikuaudio.h
rename : src/filesystem/beos/SDL_sysfilesystem.cc => src/filesystem/haiku/SDL_sysfilesystem.cc
rename : src/joystick/beos/SDL_bejoystick.cc => src/joystick/haiku/SDL_haikujoystick.cc
rename : src/loadso/beos/SDL_sysloadso.c => src/loadso/haiku/SDL_sysloadso.c
rename : src/main/beos/SDL_BApp.h => src/main/haiku/SDL_BApp.h
rename : src/main/beos/SDL_BeApp.cc => src/main/haiku/SDL_BeApp.cc
rename : src/main/beos/SDL_BeApp.h => src/main/haiku/SDL_BeApp.h
rename : src/power/beos/SDL_syspower.c => src/power/haiku/SDL_syspower.c
rename : src/timer/beos/SDL_systimer.c => src/timer/haiku/SDL_systimer.c
rename : src/video/bwindow/SDL_BWin.h => src/video/haiku/SDL_BWin.h
rename : src/video/bwindow/SDL_bclipboard.cc => src/video/haiku/SDL_bclipboard.cc
rename : src/video/bwindow/SDL_bclipboard.h => src/video/haiku/SDL_bclipboard.h
rename : src/video/bwindow/SDL_bevents.cc => src/video/haiku/SDL_bevents.cc
rename : src/video/bwindow/SDL_bevents.h => src/video/haiku/SDL_bevents.h
rename : src/video/bwindow/SDL_bframebuffer.cc => src/video/haiku/SDL_bframebuffer.cc
rename : src/video/bwindow/SDL_bframebuffer.h => src/video/haiku/SDL_bframebuffer.h
rename : src/video/bwindow/SDL_bkeyboard.cc => src/video/haiku/SDL_bkeyboard.cc
rename : src/video/bwindow/SDL_bkeyboard.h => src/video/haiku/SDL_bkeyboard.h
rename : src/video/bwindow/SDL_bmodes.cc => src/video/haiku/SDL_bmodes.cc
rename : src/video/bwindow/SDL_bmodes.h => src/video/haiku/SDL_bmodes.h
rename : src/video/bwindow/SDL_bopengl.cc => src/video/haiku/SDL_bopengl.cc
rename : src/video/bwindow/SDL_bopengl.h => src/video/haiku/SDL_bopengl.h
rename : src/video/bwindow/SDL_bvideo.cc => src/video/haiku/SDL_bvideo.cc
rename : src/video/bwindow/SDL_bvideo.h => src/video/haiku/SDL_bvideo.h
rename : src/video/bwindow/SDL_bwindow.cc => src/video/haiku/SDL_bwindow.cc
rename : src/video/bwindow/SDL_bwindow.h => src/video/haiku/SDL_bwindow.h
extra : rebase_source : afd5a42647878e283dbee3a666cef2214f0e7941
2013-11-14 11:51:24 -05:00
Ryan C. Gordon
39184a6ede
Added SDL_DetachThread() API.
...
--HG--
extra : rebase_source : 0e37621bc7ae79dd3f15030e7131aa774ad8df82
2013-11-14 00:52:39 -05:00
Ryan C. Gordon
bcaa9c4c22
Started BeOS removal: merged BeOS thread and pthread code.
...
Haiku uses most of the standard pthread API, with a few #ifdefs where we
still need to fallback onto the old BeOS APIs.
BeOS, however, does not support pthreads (or maybe doesn't support it well),
so I'm unplugging support for the platform with this changeset. Be Inc went
out of business in 2001.
--HG--
extra : rebase_source : c7227f47193228c898cc997ebcf9bb00ead329e6
2013-11-13 22:35:26 -05:00
Sam Lantinga
3434d21851
Added a hint SDL_HINT_VIDEO_FULLSCREEN_SPACES to specify that windows go fullscreen into their own spaces on Mac OS X.
2013-11-12 01:52:54 -08:00
Ryan C. Gordon
5595fbc315
Added Ben Henning's GSoC2013 work: premake build system.
2013-11-10 00:38:37 -05:00
Sam Lantinga
b8deabb706
Added SDL_HINT_CTRL_CLICK_EMULATE_RIGHT_CLICK hint which controls whether ctrl+click should emulate a right click on OSX.
2013-11-08 14:04:51 -08:00
Gabriel Jacobo
7075ece4a5
Adds Joystick support for Android
...
This bumps the build SDK level to 12 (up from 10). Runtime requirements remain
the same (at API level < 12 joystick support is disabled).
Also enables building SDL for armv7 and x86.
2013-11-05 20:07:39 -03:00
Sam Lantinga
0606843ed8
Clarified that SDL_memset4 is a 32-bit assignment and fixed a compiler warning
2013-11-03 09:42:23 -08:00
Philipp Wiesemann
0bc9aaf406
Changed parameter name for gesture template save functions from "src" to "dst".
2013-11-02 12:07:21 +01:00
Sam Lantinga
274b054ac3
SDL 2.0.0 defined __inline__ and some code relies on it now.
...
--HG--
extra : rebase_source : b16922234216c3e66aac75ff77bcb8b041eeb729
2013-10-22 21:53:58 -07:00
Sam Lantinga
a68bc09ed9
Better fix for bug 2129 - fix for bug 2121 breaks linking for mingw and throws multiple warnings
...
Jānis Rūcis
Reopening as compilation with ANSI C throws lots of unnecessary warnings, both using MinGW and using Linux GCC. (BTW, what happened? MinGW is broken to all hell. sdl2-config does not even link SDLMain anymore?)
I think this may have been lost somewhere, so again: GCC supports inlining via __inline__ in all known versions of GCC, regardless of the C standard in use. Please don't assume that __STRICT_ANSI__ implies no inlining support.
2013-10-21 02:32:34 -07:00
Sam Lantinga
44dbed38ac
Fixed bug 2129 - fix for bug 2121 breaks linking for mingw and throws multiple warnings
...
Andreas Ertelt
The problem in question is caused by changeset 7771 (http://hg.libsdl.org/SDL/rev/4434498bf4b9 / https://bugzilla.libsdl.org/show_bug.cgi?id=2121 )
The redefinition of __inline__ (introduced by the addition of begin_code.h:128's "|| __STRICT_ANSI__") results in mingw's gcc throwing multiple
warning: always_inline function might not be inlinable [-Wattributes]
as well as a whole bunch of redefinitions of mingw internals which break linking of projects including the SDL2 headers.
2013-10-20 21:56:15 -07:00
Sam Lantinga
367ffcc3af
Added a macro SDL_TICKS_PASSED() to correctly compare two 32-bit tick values.
...
Went through the code and used the macro and fixed a couple places that were using incorrect timestamp comparisons.
2013-10-20 20:42:55 -07:00
Sam Lantinga
84561c952a
Added __WINDOWS__ to reflect both 32 and 64-bit windows platforms
2013-10-20 20:41:30 -07:00
Ryan C. Gordon
7a0350ba09
Added SDL_GL_FRAMEBUFFER_SRGB_CAPABLE (thanks, David!).
...
Fixes Bugzilla #1985 .
2013-10-20 21:18:05 -04:00
Sam Lantinga
a04ca13c2d
Added an API to get the amount of system RAM
2013-10-17 11:32:56 -07:00
Sam Lantinga
be18d2d007
Fixed function feature test for Visual Studio 2012
...
norfanin
Fixes the version check for some functions that are only present with the MSVC 2013 CRT libraries.
I did my testing wrong and failed to see that 2012 doesn't have these functions. Microsoft implemented them in their upcoming 2013 version, though. The attached patch changes it to the check for the next version.
I also removed the HAVE_ITOA because that would require linking with oldnames.lib and it's easier to just let the SDL implementation take over.
2013-10-13 19:51:58 -07:00
Sam Lantinga
1c7ed8eef6
Updated SDL to version 2.0.1
2013-10-10 21:50:25 -07:00
Gabriel Jacobo
c51c4c0733
Adds gl_profile_mask to test framework, uses it in testgles
2013-10-10 00:49:57 -03:00
Gabriel Jacobo
7b5e9e302b
SDL_TEXTINPUT support for EVDEV
2013-10-03 10:28:10 -03:00
Sam Lantinga
414ff3106c
Fixed bug 2121 - GCC throws error on SDL_FORCE_INLINE when compiling with -ansi
2013-09-30 22:35:32 -07:00
Sam Lantinga
0a805ff137
Fixed bug 2119 - compiler warnings (-pedantic) SDL_video.h:111:42
2013-09-30 21:57:03 -07:00
Sam Lantinga
06caf6a344
Call AddRef() on the device so it doesn't accidentally get released from underneath the caller.
2013-09-28 14:07:17 -07:00
Sam Lantinga
2ef24caf1d
Make it clear we're just returning a D3D9 device, allowing for new functions to get other D3D versions
2013-09-28 14:07:14 -07:00
Sam Lantinga
f86e83feba
Added a hint to create the D3D device in thread-safe mode: SDL_HINT_RENDER_DIRECT3D_THREADSAFE
2013-09-28 14:07:08 -07:00
Sam Lantinga
70c993af2b
Added platform specific call: SDL_RenderGetD3DDevice()
2013-09-28 14:07:05 -07:00
Sam Lantinga
43cc5c1cbb
Added optimized YUV texture upload path with SDL_UpdateYUVTexture()
2013-09-28 14:06:47 -07:00
Sam Lantinga
edf503e870
Fixed bug 1820 - building SDL as a static library with static runtime doesn't compile/link with visual studio
...
norfanin
Adds a condition so only the MSVC 2012 compiler defines the macros for the functions of its version.
Attaching a patch that adds a condition so that the HAVE_X supported by MSVC 2012 only get defined with that compiler. MSVC 2008 and 2010 will then build without any modification to the SDL source code.
Also moved HAVE_M_PI to a separate check. The Microsoft headers require _USE_MATH_DEFINES to be defined before they define the constants.
--HG--
extra : rebase_source : 5a348adc971f36b3e524a3f30759c6b4c04c400d
2013-09-28 10:30:51 -07:00
Gabriel Jacobo
c7f38347b7
Raspberry Pi support (also unified UDEV and EVDEV support)
2013-09-28 13:28:19 -03:00
Philipp Wiesemann
e0b5831e14
Fixed doxygen warning.
2013-09-28 12:55:32 +02:00
Sam Lantinga
1a91f80586
Fixed the name of the environment variable to match the name of the hint.
2013-09-27 23:19:22 -07:00
Edward Rudd
3a11d95444
add in High DPI support (aka Retina)
...
- based on Jørgen's patch with a few bug fixes
2013-09-20 13:43:00 -04:00
Sam Lantinga
0d7001777d
Added SDL_Direct3D9GetAdapterIndex(), which returns the adapter index you would pass into CreateDevice to get your device on the right monitor in full screen mode. This fixes the default adapter in SDL_render_d3d.c, which means that tests will work fullscreen off the main monitor now.
...
CR: Sam
2013-09-13 17:42:46 -07:00
Ryan C. Gordon
f049ab5e9f
Workaround for compiling with /W4 warnings on Visual C++.
2013-09-07 13:57:20 -04:00
Sam Lantinga
494f3f253e
Fixed bug 2081 - Add name to SDL_Point structure
...
Dmitry Marakasov
Unlike SDL_Rect (typedef struct SDL_Rect {} SDL_Rect), SDL_Point (typedef struct {} SDL_Point) structure is unnamed. This feels inconsistent and makes it impossible to use forward declaration for SDL_Point, having to include whole SDL_rect.h instead.
2013-09-05 07:02:27 -07:00
Ryan C. Gordon
d7839b7827
The SDL_PixelFormat* passed to SDL_ConvertSurface() should be const.
2013-09-04 23:40:11 -04:00
Edward Rudd
2bd35f683d
make the examples in the doc comments match the actual output of the SDL_GetPrefPath function
2013-08-24 09:43:14 -04:00
Gabriel Jacobo
65f76b93b9
Separate EGL / GL ES detection in CMake
2013-08-22 14:56:07 -03:00
Ryan C. Gordon
20512dd292
Added SDL_VIDEO_OPENGL_ES2 to the SDL_config.h templates (Thanks, Kerim!).
2013-08-22 13:00:05 -04:00
Gabriel Jacobo
298ce1c1a7
OCD fixes: Adds a space after /* (glory to regular expressions!)
2013-08-21 09:47:10 -03:00
Gabriel Jacobo
271e0d67c4
OCD fixes: Adds a space before */
2013-08-21 09:43:09 -03:00
Ryan C. Gordon
2b9a2802b2
Added SDL_GetBasePath() and SDL_GetPrefPath() in new filesystem module.
...
--HG--
extra : rebase_source : c1fac232063443a2880e64f1abda85e0bdb2e710
2013-08-20 19:57:11 -04:00
Ryan C. Gordon
5b99be4382
Added SDL_DEPRECATED #define.
...
--HG--
extra : rebase_source : 865047af634b49c9f5101656e1055d0278720633
2013-08-20 14:21:35 -04:00
Ryan C. Gordon
8a69509af3
Added SDL_assert_always (never disabled).
...
--HG--
extra : rebase_source : ff08944ae7b6f86458840f29a3bf82ccb89b0307
2013-08-20 14:17:48 -04:00
Gabriel Jacobo
5e78879e76
More non C89 compliant comments
2013-08-20 20:34:40 -03:00
Gabriel Jacobo
ef4a588d99
Fixes bug #2037 , common EGL code for Android and X11
2013-08-19 16:29:46 -03:00
Sam Lantinga
7960e55671
Fixed warnings building with gcc 2 and gcc 4 on Haiku
2013-08-18 23:18:11 -07:00
Philipp Wiesemann
7a4e8a1021
Replaced introduction in header file with more recent version from README.txt.
2013-08-18 11:15:30 +02:00
Philipp Wiesemann
dbd31e454a
Corrected file names in header file comments.
2013-08-18 11:12:46 +02:00