Ryan C. Gordon
fc7afa9cbf
rwops: Renamed SDL_RWops to SDL_IOStream, and other related symbols.
2024-03-14 19:38:12 -04:00
Ryan C. Gordon
7d4d8ccde0
rwops: Rename everything from SDL_RWxxx to SDL_XxxRW.
2024-03-14 19:37:04 -04:00
Ryan C. Gordon
655ceb3b31
rwops: Renamed SDL_CreateRW and SDL_DestroyRW to SDL_OpenRW and SDL_CloseRW.
2024-03-14 19:37:01 -04:00
Sam Lantinga
b322d27f62
Missed SDL_NumJoystickBalls() rename in SDL_migration.cocci
2024-03-10 21:31:19 -07:00
Sam Lantinga
efbbafb3f1
Re-added balls to the SDL joystick API
...
It turns out these were being used on Linux and at least one virtual driver was making use of them (thanks @mrfixit2001!)
2024-03-10 21:30:14 -07:00
Anonymous Maarten
b5eb704fa8
cmake: we only need a C++ compiler for Android, Haiku and UWP
...
Our CMake script does (currently) not support NGage, Xbox One, or Xbox Series.
2024-03-11 00:27:54 +01:00
Sam Lantinga
c36f773eb4
Fixed "${folder^}Activity: bad substitution" with bash 3.2 on macOS
2024-03-05 13:35:17 -08:00
Anonymous Maarten
4898505f23
cmake: add winres to the list of potential name rc compilers
2024-03-05 20:38:00 +01:00
Sam Lantinga
4189edaeb7
Uppercase the first letter of the class name to match Java conventions
...
Fixes https://github.com/libsdl-org/SDL/issues/8930
2024-03-03 16:57:02 -08:00
Ryan C. Gordon
1e8b006d43
stdlib: qsort and bsearch changes.
...
- Always use internal qsort and bsearch implementation.
- add "_r" reentrant versions.
The reasons for always using the internal versions is that the C runtime
versions' callbacks are not mark STDCALL, so we would have add bridge
functions for them anyhow, The C runtime qsort_r/qsort_s have different
orders of arguments on different platforms, and most importantly: qsort()
isn't a stable sort, and isn't guaranteed to give the same ordering for
two objects marked as equal by the callback...as such, Visual Studio and
glibc can give different sort results for the same data set...in this
sense, having one piece of code shared on all platforms makes sense here,
for reliabillity.
bsearch does not have a standard _r version at all, and suffers from the
same SDLCALL concern. Since the code is simple and we would have to work
around the C runtime, it's easier to just go with the built-in function
and remove all the CMake C runtime tests.
Fixes #9159 .
2024-03-01 08:28:12 -05:00
Sam Lantinga
9e505252c0
Renamed SDL_HINT_PS2_DYNAMIC_VSYNC SDL_HINT_RENDER_PS2_DYNAMIC_VSYNC
2024-02-12 09:54:33 -08:00
Sam Lantinga
a538936821
Renamed SDL_HINT_LINUX_JOYSTICK_DEADZONES to SDL_HINT_JOYSTICK_LINUX_DEADZONES
2024-02-12 09:54:33 -08:00
Sam Lantinga
980c379a0b
Renamed SDL_HINT_LINUX_JOYSTICK_CLASSIC to SDL_HINT_JOYSTICK_LINUX_CLASSIC
2024-02-12 09:54:33 -08:00
Sam Lantinga
1f7936d545
Renamed SDL_HINT_LINUX_HAT_DEADZONES to SDL_HINT_JOYSTICK_LINUX_HAT_DEADZONES
2024-02-12 09:54:33 -08:00
Sam Lantinga
39cfb437ed
Renamed SDL_HINT_LINUX_DIGITAL_HATS to SDL_HINT_JOYSTICK_LINUX_DIGITAL_HATS
2024-02-12 09:54:33 -08:00
Sam Lantinga
b557c15bcf
Renamed SDL_HINT_JOYSTICK_GAMECUBE_RUMBLE_BRAKE to SDL_HINT_JOYSTICK_HIDAPI_GAMECUBE_RUMBLE_BRAKE
2024-02-12 09:54:33 -08:00
Sam Lantinga
4f628b5b62
Renamed SDL_HINT_GDK_TEXTINPUT_DEFAULT to SDL_HINT_GDK_TEXTINPUT_DEFAULT_TEXT
2024-02-12 09:54:33 -08:00
Sam Lantinga
fd5d761128
Renamed SDL_HINT_DIRECTINPUT_ENABLED to SDL_HINT_JOYSTICK_DIRECTINPUT
2024-02-12 09:54:33 -08:00
Sam Lantinga
a5da7d0dd5
Renamed SDL_HINT_ALLOW_TOPMOST to SDL_HINT_WINDOW_ALLOW_TOPMOST
2024-02-12 09:54:33 -08:00
Sam Lantinga
cacac6cc34
Updated structure and field names for consistency
...
Type names are camel case and field names are snake case except for fields ending in id, which are capitalized.
Fixes https://github.com/libsdl-org/SDL/issues/6955
2024-02-11 08:27:56 -08:00
Sam Lantinga
f95b7ee4da
Renamed SDL_HasWindowSurface to SDL_WindowHasSurface
...
Fixes https://github.com/libsdl-org/SDL/issues/9034
2024-02-09 17:42:18 -08:00
Xander
a3bfd5329c
Fix broken mingw i686 buildscript
2024-01-28 17:29:33 -08:00
Xander
59d7dd3615
Fix broken mingw x86_64 buildscript
2024-01-28 17:29:33 -08:00
Anonymous Maarten
44a2c4d512
Only retain SDL_* + platform macro's in rename_macros.py
2024-01-26 18:05:49 +01:00
Anonymous Maarten
33f86d81fc
Add all macros from SDL2's SDL_config.h to rename_macros.py
2024-01-26 02:32:00 +01:00
Sam Lantinga
b8c4ea3cd1
Don't add the FIXME for converted macros
...
We're pretty sure this is correct and anyone who runs this script is likely to have source control to see the differences
2024-01-24 12:38:44 -08:00
Sam Lantinga
95a67278d1
Updated documentation after 2654c52d0e
2024-01-24 11:00:13 -08:00
Ozkan Sezer
12b01ef674
rename_macros.py: fix typo for __WIN32__
2024-01-24 20:10:00 +03:00
Anonymous Maarten
31d133db40
Define SDL_PLATFORM_* macros instead of underscored ones ( #8875 )
2024-01-24 01:40:51 +00:00
Sam Lantinga
cd231a65f6
Added SDL_GetJoystickCaps() and SDL_GetGamepadCaps() to get the capabilities of controllers
...
Also added SDL_GAMEPAD_CAP_PLAYER_LED to let the application know if the controller has a visible player LED
2024-01-22 19:23:42 -08:00
Sam Lantinga
fc0c774976
Renamed SDL_ThreadID() to SDL_GetCurrentThreadID()
...
Also renamed SDL_threadID to SDL_ThreadID and made it Uint64 for consistency with other ID types
2024-01-18 08:18:37 -08:00
Sam Lantinga
a2665f54c8
Updated the atomic API for SDL 3.0 naming conventions
...
Fixes https://github.com/libsdl-org/SDL/issues/7388
2024-01-18 04:41:34 -08:00
Sam Lantinga
f224af5ac5
Updated Haptic API for SDL 3.0 conventions
...
Also removed the XInput haptic support since using the haptic API for rumble is no longer supported.
2024-01-18 03:26:11 -08:00
Sam Lantinga
5b3ee51c6c
Updated copyright for 2024
2024-01-01 13:15:26 -08:00
Sylvain
ffd82fb7c4
Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear().
2023-12-22 09:13:21 -08:00
Sylvain
5dba04b29b
Remove SDL_{Set,Get}SurfaceScale().
...
Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked()
(see #8732 )
2023-12-22 02:08:49 -08:00
Sam Lantinga
4bb5e1f0f9
Added migration notes for migrating Steam Input support from SDL2 to SDL3
2023-12-20 14:15:09 -08:00
Ryan C. Gordon
df0fd55891
wikiheaders.pl: README files are no longer in Windows endline format.
2023-11-30 10:10:04 -05:00
Ryan C. Gordon
dd47da8a5c
gamepad: Replace GetNumMappings/GetMappingByIndex with a single function.
...
Now it returns an array and optional count, to match other SDL3 APIs.
2023-11-29 20:50:44 -05:00
Ryan C. Gordon
dfee3f9e92
render: Replaced SDL_RenderFlush with SDL_FlushRenderer.
...
This uses the same `SDL_VerbNoun` format as the rest of SDL3, and also
adds stronger effort to invalidate cached state in the backend, so cooperation
improves with apps that are using lowlevel rendering APIs directly.
Fixes #367 .
2023-11-29 14:24:26 -05:00
Ryan C. Gordon
869257a5c1
SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface.
2023-11-06 19:16:38 -05:00
Sam Lantinga
c2a3112b6f
Added "--substring" to the help for rename_symbols.py
2023-10-23 09:14:54 -07:00
Ryan C. Gordon
9d7c57234a
audio: Cleaned out most remaining `/* */` comments for `//` style.
...
Fully committing to it...!
This left SDL_wave.* alone for now, since there's a ton of comments in there
and this code hasn't changed much from SDL2 so far. But as SDL2 ages out a
little more, I'll likely switch this over, too.
2023-10-18 15:39:01 -04:00
Sam Lantinga
4368f70ff9
Added properties to various SDL objects
...
The following objects now have properties that can be user modified:
* SDL_AudioStream
* SDL_Gamepad
* SDL_Joystick
* SDL_RWops
* SDL_Renderer
* SDL_Sensor
* SDL_Surface
* SDL_Texture
* SDL_Window
2023-10-11 22:38:00 -07:00
Ryan C. Gordon
8745a9949b
add-source-to-projects.pl: Fix adding files in the base src dir.
2023-10-09 19:19:01 -04:00
Ryan C. Gordon
399bc709b7
build-scripts.pl: Added add-source-to-projects.pl
...
This insert files to the Xcode and Visual Studio projects, so you can add
sources to the build without having to find a Mac or Windows machine with
the appropriate tools installed, and manually update four different sets of
projects across them.
This doesn't touch CMake, but you can add files to that with a text editor
(hopefully) without drama.
This, like all Perl code, is fragile. Report bugs and don't push it too hard.
2023-09-22 23:08:46 -04:00
Sam Lantinga
859dc14add
Replaced SDL_GetGamepadBindForAxis() and SDL_GetGamepadBindForButton() with SDL_GetGamepadBindings()
2023-09-13 23:01:28 -07:00
Ryan C. Gordon
ce27363df2
wikiheaders: Sort undocumented functions.
...
Otherwise they appear in random order, which isn't ideal in general, but
also this breaks the wiki/header bridge because it can't produce identical
conversions per-run.
2023-09-12 09:58:10 -04:00
Anonymous Maarten
b00cbd76aa
wikiheaders.pl: create Unsupported.md file with list of functions undocumented in either the headers or the wiki
2023-09-06 15:51:08 -04:00
Anonymous Maarten
e85206ffd8
wikiheaders.pl: add --rev= option to pass revision string
...
This way, git is not required anymore to calculate the git revision
2023-09-04 18:56:00 +02:00