Ryan C. Gordon
726d6f9422
wikiheaders: Allow markdown in the wikipreamble string.
...
Reference Issue #6568 .
2023-01-26 14:45:57 -05:00
Anonymous Maarten
330ad80014
cocci: fix game pad event types
2023-01-25 22:02:31 +01:00
Ryan C. Gordon
01cba48d18
wikiheaders: Add a \threadsafety
tag to document threading details.
...
Reference Issue #7140 .
2023-01-25 12:59:25 -05:00
Sylvain
724d92fd65
Rename SDL_GetDisplayDPI to SDL_GetDisplayPhysicalDPI
...
to avoid confusion with logical DPI
2023-01-25 00:04:00 -08:00
Sam Lantinga
7b50bae524
Renamed SDL events for clarity
...
Fixes https://github.com/libsdl-org/SDL/issues/6877
2023-01-24 07:26:48 -08:00
Anonymous Maarten
0770c55e8d
cocci: remove SDL_INIT_NOPARACHUTE
2023-01-22 20:14:35 +01:00
Anonymous Maarten
967ebd78e6
cocci: also fix up SDL_CreateRenderer calls with non-default render indices
2023-01-22 20:04:40 +01:00
Sylvain
1a47cf5448
Revert "gen_audio_resampler_filter: Use SDL_PI_F"
...
This reverts commit 41221777ba
.
2023-01-16 10:04:22 +01:00
Sylvain
41221777ba
gen_audio_resampler_filter: Use SDL_PI_F
2023-01-16 09:24:27 +01:00
Sylvain
9eaea7d661
SDL_migration.cocci: simplify multiplicaction / division by 1
2023-01-12 20:52:37 +01:00
Sylvain
3b2e9d98df
SDL_migration.cocci: migrate audio api 1.2
2023-01-12 15:01:31 +01:00
Sylvain
8bdc25f4e4
SDL_migration.cocci: set events
2023-01-12 11:56:49 +01:00
Sylvain
ed1bdf32ee
SDL_migration.cocci: more gamepad migration
2023-01-12 11:39:48 +01:00
Sylvain
9b0c660a03
SDL_migration: various name changes, and function removed
2023-01-12 11:08:15 +01:00
Sylvain
21e4be5a27
SDL_migration: add RW read/write
2023-01-12 10:43:08 +01:00
Sylvain
efa2945502
SDL_migration.cocci: add SIMD Alloc / Free
2023-01-12 09:58:37 +01:00
Sylvain
439c0b0236
Add vulkan migration
2023-01-12 09:45:14 +01:00
Sam Lantinga
0ad22cfe37
Fixed version validation
2023-01-11 15:11:41 -08:00
Sylvain
84cd7214bd
SDL_migration.cocci / rename_api.py: handle migration of enum/structure
...
and fix previous one in SDL_migration.cocci.
2023-01-11 23:33:14 +01:00
Sam Lantinga
9f721d492a
Catch SDL_opengles2.h in rename_headers.py
2023-01-10 15:25:48 -08:00
Sam Lantinga
69b94145d3
Updated documentation for SDL_migration.cocci
...
Especially note that this can be installed and run in WSL on Windows
2023-01-10 07:54:18 -08:00
Anonymous Maarten
c4b471bd13
Ensure training new line in cocci files
2023-01-10 16:43:15 +01:00
Anonymous Maarten
ecc48b882d
migration: change 2nd arg of SDL_CreateRenderer to NULL if it was -1
2023-01-10 16:11:22 +01:00
Sylvain Becker
5066fcde69
Add SDL_migration.cocci for SDL2 to 3 migration ( #7042 )
...
* Add SDL_migration.cocci for SDL2 to 3 migration
2023-01-10 15:25:00 +01:00
Sam Lantinga
fde78d12f2
Updated copyright for 2023
2023-01-09 09:41:41 -08:00
Sam Lantinga
78ccadd5a2
Speed up processing of update-copyright.sh
2023-01-09 09:38:36 -08:00
Sam Lantinga
228d9ae791
rename_headers.py covers begin_code.h/close_code.h
2023-01-04 23:50:08 -08:00
Sam Lantinga
566a559beb
Fixed parsing symbols from SDL_oldnames.h
2023-01-04 13:51:00 -08:00
Sam Lantinga
e76c1d74bc
Added a python script to rename SDL2 headers to SDL3 headers
2023-01-04 11:20:38 -08:00
Sam Lantinga
406c8b79fe
rename_symbols: only write new file if contents have changed
...
Also don't stop for other exceptions, just print them and keep going
2023-01-04 10:40:30 -08:00
Sam Lantinga
ce412c2c71
Consistency cleanup for README-migration.md
2022-12-29 10:44:54 -08:00
Sam Lantinga
9b8208c195
Updated add_symbol_to_oldnames
2022-12-28 17:49:34 -08:00
Sam Lantinga
1d80082e8e
Removed old iOS demos
2022-12-27 16:48:55 -08:00
Sam Lantinga
5baed331f1
Don't add symbol renaming to WhatsNew.txt
2022-12-27 10:00:10 -08:00
Sam Lantinga
84725c00d8
Make sure we update the cmake test programs as well
2022-12-27 09:56:16 -08:00
Sam Lantinga
659abc721a
SDL API renaming: SDL_gamecontroller.h
...
SDL_gamecontroller.h has been renamed SDL_gamepad.h, and all APIs have been renamed to match.
Fixes https://github.com/libsdl-org/SDL/issues/6885
2022-12-27 09:47:24 -08:00
Sam Lantinga
59467ff063
Make it easier to mass rename symbols in the SDL API
2022-12-27 07:31:27 -08:00
Sam Lantinga
63724c113b
Removed the vi format comments from the source
...
Vim users can use the [editorconfig plugin](https://github.com/editorconfig/editorconfig-vim ) to automatically set tab spacing for the SDL coding style.
Fixes https://github.com/libsdl-org/SDL/issues/6903
2022-12-26 11:17:23 -08:00
Sam Lantinga
d31776b17a
Also rename the internal function symbol when renaming API functions
2022-12-26 08:57:57 -08:00
Sam Lantinga
32fad06a93
Catch the iOS demos when renaming API functions
2022-12-23 20:32:12 -08:00
Sam Lantinga
c309a92034
Added rename_symbols.py to mass rename symbols in an SDL2 codebase
2022-12-23 15:07:21 -08:00
Sam Lantinga
0967a32fc6
Added a --code-only option to rename.py
...
Also added support for renaming macros and structures
2022-12-23 13:15:19 -08:00
Sam Lantinga
b5a92406eb
Added infrastructure for renaming API functions
...
You can rename APIs using rename.py and all the code and documentation will be updated, and entries will be added to WhatsNew.txt and docs/README-migration.md.
e.g.
rename.py SDL_foo.h function SDL_CreateFoo SDL_FooCreate
SDL_oldnames.h is included in the SDL header, and if you define SDL_ENABLE_OLD_NAMES, will redefine the old API functions to call the new ones, and if not, will define them as a symbol letting you what the new API function is.
2022-12-23 11:00:11 -08:00
Anonymous Maarten
9e6952ed8c
android: fix android-prefab.sh for SDL3
2022-12-21 09:39:22 -08:00
Daniel Gibson
c3bf253b09
Remove SDL3_main from build systems, remove most of src/main/*
...
XCode is still missing, and src/main/winrt/SDL3-WinRTResource*
still need to find a new home
2022-12-15 08:01:01 -08:00
Daniel Gibson
7bfc41db3c
Unify all the SDL_*RunApp() functions into just SDL_RunApp()
...
makes the SDL_main code shorter
Also added a generic SDL_RunApp() implementation for platforms that
don't really need it.
Some platforms (that use SDL_main but haven't been ported yet) are
still missing, but are added in the following commits.
2022-12-15 08:01:01 -08:00
Daniel Gibson
2aee3e654d
Remove SDL_main from VS Solutions in VisualC/ and VisualC-GDK/
...
and update README-visualc.md and README-gdk.md accordingly
Also moved src/main/windows/version.rc to src/core/windows/
and adjusted VS solutions, CMakeLists.txt and versioning scripts
in build-scripts/ accordingly.
This will eventually allow us to remove all of src/main/
# Conflicts:
# VisualC/tests/testgesture/testgesture.vcxproj
2022-12-15 08:01:01 -08:00
Sam Lantinga
5750bcb174
Update for SDL3 coding style ( #6717 )
...
I updated .clang-format and ran clang-format 14 over the src and test directories to standardize the code base.
In general I let clang-format have it's way, and added markup to prevent formatting of code that would break or be completely unreadable if formatted.
The script I ran for the src directory is added as build-scripts/clang-format-src.sh
This fixes:
#6592
#6593
#6594
2022-11-30 12:51:59 -08:00
Sam Lantinga
c2432f8d0d
Rename SDLmain to SDL_main and SDLtest to SDL_test for consistency with other SDL libraries
2022-11-28 10:57:59 -08:00
Sam Lantinga
0a48abc860
Switch header convention from #include "SDL.h"
to #include <SDL3/SDLh>
...
I ran this script in the include directory:
```sh
sed -i '' -e 's,#include "\(SDL.*\)",#include <SDL3/\1>,' *.h
```
I ran this script in the src directory:
```sh
for i in ../include/SDL3/SDL*.h
do hdr=$(basename $i)
if [ x"$(echo $hdr | egrep 'SDL_main|SDL_name|SDL_test|SDL_syswm|SDL_opengl|SDL_egl|SDL_vulkan')" != x ]; then
find . -type f -exec sed -i '' -e 's,#include "\('$hdr'\)",#include <SDL3/\1>,' {} \;
else
find . -type f -exec sed -i '' -e '/#include "'$hdr'"/d' {} \;
fi
done
```
Fixes https://github.com/libsdl-org/SDL/issues/6575
2022-11-26 22:15:18 -08:00