Sylvain
3fb0c8b54a
Remove/Rename SDL_FreeWAV() to SDL_free()
2022-12-27 05:14:52 -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
Frank Praznik
abdfa809db
Prepend key modifier enum values with 'SDL_'
2022-12-23 20:35:49 -08:00
Sam Lantinga
fd0631fd35
Added documentation for rename_symbols.py
2022-12-23 15:58:15 -08:00
Sam Lantinga
759f98085a
Used rename_api.py to add previously renamed symbols to SDL_oldnames.h
2022-12-23 15:08:30 -08:00
Ryan C. Gordon
1cf2b566af
cpu: Removed 3DNow! support and SDL_Has3DNow().
...
Reference Issue #6636 .
2022-12-23 09:30:56 -08:00
meyraud705
126c60cb45
Add "SDL_" prefix to RW_SEEK macros
2022-12-23 09:25:37 -08:00
Sam Lantinga
1a80fbaae4
Moved the header sections into alphabetical order in README-migration.md
2022-12-22 17:06:46 -08:00
Ryan C. Gordon
3197632347
include: Renamed begin_code.h and close_code.h to have SDL_ prefixes.
...
Fixes #6864 .
2022-12-22 11:39:26 -05:00
Sam Lantinga
909b513c33
Made SDL_WINDOWEVENT_* and SDL_DISPLAYEVENT_* first class event types
...
Fixes https://github.com/libsdl-org/SDL/issues/6772
2022-12-22 07:38:13 -08:00
Ryan C. Gordon
182806e39f
docs: Updated migration notes for SDL_RWops.
2022-12-22 00:55:54 -05:00
Ryan C. Gordon
d927befcd7
docs: Just adjusting some link text.
2022-12-17 13:06:44 -05:00
Ryan C. Gordon
7b25f04476
README-migration.md: Point to the SDL_gesture repository.
2022-12-17 13:05:00 -05:00
Ryan C. Gordon
3b5780ba0a
README-migration.md: Updated stdio RWops example code for new API.
2022-12-17 13:05:00 -05:00
Daniel Gibson
ab554c8392
Update doc/README-* for header-only SDL_main
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
Daniel Gibson
28b93451dc
Make WinRT's SDL_main header-only
...
As the implementation requires C++, the user will have to include
SDL_main.h in a C++ source file (that needs to be compiled with /ZW).
It's ok to keep the standard main() implementation in plain C and use
an otherwise empty C++ source file for the SDL_main implementation part,
if both source files #include <SDL3/SDL_main.h>
Including SDL_main.h in a C source file will print a message at
compilation (when building for WinRT or possibly other not yet implemented
platforms that require C++ for main), to remind the user of also
including it in a .cpp source file. This message/warning can be disabled
with #define SDL_MAIN_NOIMPL before including SDL_main.h in the C file.
When including it in a .cpp file, there will be a compiler error with
helpful message if it's not compiled with /ZW
For this I renamend _SDL_MAIN_NOIMPL to SDL_MAIN_NOIMPL, because now it's
not for internal use only anymore, but also useful for users (that want
their main() function in a different file than the SDL_main implementation)
Add a project for the testdraw2.c test to the WinRT solution to at least
get some minimal testing on WinRT.
I won't add all tests because it's a lot of manual clicking per test,
but this should be better than nothing :)
2022-12-15 08:01:01 -08:00
Daniel Gibson
8e0693c982
Make iOS/tvOS (uikit) SDL_main header-only
...
Also adjusted iOS demo's includes to <SDL3/..> and explicit SDL_main.h
untested, I don't have Xcode (or a Mac, for that matter)
The xcode projects (for both Xcode-iOS/ and Xcode/) will probably
have to be adjusted for the SDL_main changes to work, but now at least
the iOS demo source should work as is :)
2022-12-15 08:01:01 -08:00
Daniel Gibson
28ecbbf0b5
Make GDK's SDL_main header-only
2022-12-15 08:01:01 -08:00
Ryan C. Gordon
5a2d0b69c8
render: Remove SDL_GetRenderDriverInfo and change SDL_CreateRenderer.
...
Fixes #6625 .
2022-12-13 23:27:35 -05:00
Ryan C. Gordon
a76053352c
gesture: Removed the gesture API from SDL3.
...
Fixes #6758 .
2022-12-13 14:54:37 -05:00
Pierre Wendling
053ce39d67
N3DS: Semaphore fixes. ( #6776 )
...
* N3DS: Make Sem waits cooperative friendly.
The 3DS has a cooperative threading model. Sleeping after TryWait and
WaitTimeout avoid starving other threads. It inccurs a runtime penalty,
but it's better than having to hard reset your console to recover from
a deadlock.
2022-12-11 11:27:16 -08:00
Sylvain
c265fb74b0
Renamed AUDIODRIVER and VIDEODRIVER hint/env to AUDIO_DRIVER and VIDEO_DRIVER
2022-12-08 09:50:09 -05:00
Ryan C. Gordon
7ca0d15d64
events: Changed SDL_GetEventState from a macro to a function.
...
Fixes #6773 .
2022-12-08 00:08:51 -05:00
Cameron Cawley
ee0e9e979c
Move intrinsic includes into a private header
2022-12-04 09:34:10 -08:00
Sam Lantinga
b4da4ed95a
Removed SDL_SensorGetDataWithTimestamp() and SDL_GameControllerGetSensorDataWithTimestamp()
...
If you care about timestamps you'll also want to catch all of the sensor events instead of just polling the current state. For example, Nintendo Switch controllers generate 3 sensor events with distinct values for each polling interval.
2022-12-04 09:29:28 -08:00
Sam Lantinga
b8760a3ffe
The `timestamp_us` member of the sensor events has been renamed `sensor_timestamp` and now represents nanoseconds.
2022-12-04 09:29:28 -08:00
Sam Lantinga
0a3262e819
Pass the OS event timestamp for keyboard, mouse, and touch events where possible
...
Currently implemented for Windows and Apple platforms
2022-12-02 12:37:41 -08:00
Sam Lantinga
8121bbd083
Convert ticks to 64-bit, added nanosecond precision to the API
...
Fixes https://github.com/libsdl-org/SDL/issues/5512
Fixes https://github.com/libsdl-org/SDL/issues/6731
2022-12-02 12:37:41 -08:00
Sylvain Becker
ab1f4172e3
Remove SDL_GL_CONTEXT_EGL #6657 ( #6683 )
2022-12-01 14:53:37 -08:00
Sam Lantinga
a463aca0d1
Simplified SDL_CreateRGBSurface* functions
2022-12-01 08:53:14 -08:00
Sam Lantinga
1e7e25626b
Use SDL_PIXELFORMAT_RGB565, which is the most common 16-bit format
2022-12-01 08:34:41 -08:00
Sam Lantinga
a01759f8f0
Fixed 16-bit RGBA masks
2022-12-01 08:32:57 -08:00
Sam Lantinga
c30b2063e0
Clarified the migration path for SDL_CreateSurface()
2022-12-01 08:26:32 -08:00
Sylvain Becker
932f61348d
Remove mask versions of SDL_CreateRGBSurface* #6701 ( #6711 )
...
* Rename SDL_CreateRGBSurface{,From} to SDL_CreateSurface{,From}, which now takes a format parameter
2022-12-01 08:04:02 -08:00
Sylvain Becker
fc4fc5295f
Remove depth field from SDL_CreateRGBSurfaceWithFormat and SDL_Create… ( #6685 )
...
* Remove depth field from SDL_CreateRGBSurfaceWithFormat and SDL_CreateRGBSurfaceWithFormatFrom
* Removed unused 'flags' parameter from SDL_CreateRGBSurface and SDL_CreateRGBSurfaceWithFormat
* Removed unused 'flags' parameter from SDL_ConvertSurface and SDL_ConvertSurfaceFormat
2022-11-29 09:40:09 -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
2af4f74e1c
Remove sdl3.m4 and sdl3-config, and document pkg-config as the recommended replacement
...
Fixes https://github.com/libsdl-org/SDL/issues/6639
2022-11-27 14:11:06 -08:00
Sasha Szpakowski
80a9397459
Remove SDL_HINT_IDLE_TIMER_DISABLED.
...
SDL_DisableScreenSaver can be used instead. Fixes #6660 .
2022-11-27 08:23:02 -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
Sam Lantinga
63f307fe1f
Remove SDL_config.h from the public headers
...
The SDL headers are no longer dependent on the build configuration.
Fixes https://github.com/libsdl-org/SDL/issues/6643 and https://github.com/libsdl-org/SDL/issues/6641
2022-11-26 04:48:36 -08:00
Sam Lantinga
5cfd26d0b9
Removed obsolete android-project-ant
2022-11-25 16:03:29 -08:00
Sam Lantinga
cc1f9eb983
Use Apple's nomenclature for macOS and iOS
...
Fixes https://github.com/libsdl-org/SDL/issues/6621
2022-11-25 16:00:06 -08:00
Sam Lantinga
5fb3eb9475
Update docs/README-porting.md
...
Co-authored-by: Cameron Cawley <ccawley2011@gmail.com>
2022-11-25 15:37:30 -08:00
Sam Lantinga
597e6a685b
Update docs/README-macos.md
...
Co-authored-by: Cameron Cawley <ccawley2011@gmail.com>
2022-11-25 15:37:30 -08:00
Sam Lantinga
7661725b48
Update docs/README-riscos.md
...
Co-authored-by: Cameron Cawley <ccawley2011@gmail.com>
2022-11-25 15:37:30 -08:00
Anonymous Maarten
bdb416e4f3
docs: remove references to configure build systems from documentation
2022-11-25 15:37:30 -08:00
Frank Praznik
873ec097ea
x11: Remove deprecated/defunct X11 hints
...
SDL_HINT_VIDEO_X11_FORCE_EGL was deprecated in favor of the more general SDL_HINT_VIDEO_FORCE_EGL, and Xinerama and Xvidmode support was previously removed from SDL, rendering their associated hints nonfunctional.
2022-11-25 13:46:47 -08:00
Sam Lantinga
346eeba210
Removed SDL_GetRevisionNumber()
...
Fixes https://github.com/libsdl-org/SDL/issues/6620
2022-11-25 13:36:14 -08:00
slime
ac8fbb7040
Remove SDL_CalculateGammaRamp.
2022-11-25 13:28:56 -08:00
slime
52f4cc843d
Remove SDL_SetWindowBrightness and SDL_SetWindowGammaRamp.
2022-11-25 13:28:56 -08:00
Ozkan Sezer
0b8309da0c
renamed SDL PI constants to SDL_PI_D and SDL_PI_F.
2022-11-25 22:35:24 +03:00
Sam Lantinga
05139f4a2e
Removed SDL_RWFromFP from the public API
...
This will blow up if the SDL library and the application have a different C runtime, which can easily happen on Windows.
2022-11-25 10:46:26 -08:00
Sam Lantinga
670f1df469
Removed SDL_stdinc.h dependency on HAVE_M_PI, added SDL_M_PIl (double) and SDL_M_PIf (float) instead
2022-11-25 10:33:37 -08:00
Sam Lantinga
b0840eb32e
Updated SDL_syswm.h for SDL 3.0
...
* The header is no longer dependent on SDL build configuration
* The structures are versioned separately from the rest of SDL
* SDL_GetWindowWMInfo() now returns a standard result code and is passed the version expected by the application
* Updated WhatsNew.txt and docs/README-migration.md with the first API changes in SDL 3.0
2022-11-23 14:05:59 -08:00
Sam Lantinga
a635a485bc
Re-added WinRT support until we're sure that it's no longer being used
2022-11-23 10:41:43 -08:00
Ozkan Sezer
34231f5ba0
reverted opengles removal.
2022-11-23 18:50:02 +03:00
Ozkan Sezer
016b757311
reverted jack audio backend removal.
2022-11-23 06:50:20 +03:00
Ozkan Sezer
dc2a3e06e9
removed WinRT support.
2022-11-22 23:36:24 +03:00
Ozkan Sezer
30b1ab2add
removed opengles.
2022-11-22 21:48:40 +03:00
Ozkan Sezer
be6853b6f1
removed WinCE readmes.
2022-11-22 20:51:50 +03:00
Ozkan Sezer
3cccaeba6c
removed jack audio remnants.
2022-11-22 20:51:07 +03:00
Ozkan Sezer
3aea865cdf
removed directfb support.
2022-11-22 20:45:45 +03:00
Ozkan Sezer
e89a1f9157
removed NaCL support.
2022-11-22 20:10:47 +03:00
Cameron Cawley
05e2c8f2ce
Update README-riscos.md to reflect that atomic functions have been fixed
2022-11-22 08:32:18 -08:00
Ozkan Sezer
8d6fda4810
removed os2 support & support for building SDL with watcom.
2022-11-22 19:18:47 +03:00
Ozkan Sezer
63243eb3a5
removed pandora support
2022-11-22 18:50:00 +03:00
Sam Lantinga
2c4159b99a
First pass at changing SDL 2.0 to SDL 3.0
2022-11-21 20:28:58 -08:00
Pierre Wendling
dcfa127fd4
N3DS: Document the SDL_GetBasePath behaviour.
2022-11-14 21:24:10 -08:00
Ryan C. Gordon
0ddec7e421
docs: Add notes about Emscripten audio quirks.
...
Fixes #6385 .
2022-10-28 16:08:23 -04:00
Pierre Wendling
c7c0e81c1c
N3DS: Update README.
2022-10-10 08:50:59 -07:00
Pierre Wendling
655275378d
N3DS port (squashed)
...
A dedicated renderer using Citro3D would likely allow for better
much better graphical performances.
2022-10-10 08:50:59 -07:00
Sam Lantinga
5490505a2b
Added a note to update the website after a stable release
2022-10-08 09:41:10 -07:00
slime
f8f562dace
iOS: remove dead pre-iOS 8 codepaths.
...
SDL hasn't supported those older iOS versions for a little while now.
2022-10-02 19:57:46 -07:00
Ryan C. Gordon
1b895912a2
docs: Note the lowest supported Emscripten version.
...
Reference Issue #6304 .
2022-09-30 14:23:54 -04:00
Ryan C. Gordon
508cc225a7
Update README.md
2022-09-28 10:17:39 -04:00
Ryan C. Gordon
d843d61cc1
Moved test/versioning.sh to build-scripts/test-versioning.sh
...
Reference Issue #6171 .
2022-09-28 09:09:43 -04:00
Ryan C. Gordon
8e14647759
build-scripts: Added update-version.sh
...
Fixes #6171 .
2022-09-27 22:04:07 -04:00
tjpadula
a0f143fc93
Add build target to Xcode project to create an xcframework for iOS ( #6188 )
2022-09-05 13:10:15 -07:00
Sam Lantinga
23be3ccc2f
Note that we should regenerate configure before running test/versioning.sh
2022-09-05 11:25:10 -07:00
Sam Lantinga
acf397b4df
Actually, DYLIB_COMPATIBILITY_VERSION shouldn't be updated for a stable point release
...
@smcv
2022-09-05 11:21:13 -07:00
Sam Lantinga
5cac6c7eb6
Note that the Xcode DYLIB_COMPATIBILITY_VERSION should always match DYLIB_CURRENT_VERSION
...
CMake doesn't need any special handling
2022-09-05 08:48:16 -07:00
Sam Lantinga
4e98ba612b
Set DYLIB_COMPATIBILITY_VERSION to DYLIB_CURRENT_VERSION to match autotools
...
Autotools sets both versions to the same value, so Xcode and CMake need to match for the libraries to be compatible between the different builds.
See these for details:
https://github.com/libsdl-org/sdl12-compat/pull/207
https://github.com/libsdl-org/SDL/issues/2934
https://stackoverflow.com/questions/67055770/usage-of-current-version-and-compatibility-version-on-macos
2022-09-05 08:28:06 -07:00
Francisco Javier Trujillo Mata
f1e4685806
Adding specific SDL_Hint for the dynamic VSYNC
2022-08-30 07:20:36 -04:00
Yevhen Babiichuk (DustDFG)
e6864d17b6
Update minimal required Android SDK version
...
Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com>
2022-08-24 11:39:32 -07:00
Ryan C. Gordon
3a9295e14f
build-scripts: Removed winrtbuild.*, no longer used.
...
WinRT/UWP is still supported, but you have to use the VS2019
project files, now.
Fixes #5639 .
2022-08-09 16:17:28 -04:00
Anonymous Maarten
53141a56b4
Expand CMake documentation a bit ( #5961 )
...
* cmake: remove duplicate check_required_components macro
* Expand docs/README-cmake.md a bit
* cmake: path needs `/` infix
2022-08-09 13:05:03 -07:00
Ryan C. Gordon
8695d982d2
README-winrt.md: Updates for newer build details.
2022-08-09 10:09:54 -04:00
Francisco Javier Trujillo Mata
d355ea9981
Add a way to avoid IOP reset
2022-08-08 08:32:38 -07:00
Pierre Wendling
f790fc4fc0
Add contributing guidelines.
2022-08-07 16:34:52 -07:00
Cameron Cawley
3bdc10f842
Update the list of required Ubuntu packages, and add Ubuntu 22.04 workflows
2022-07-30 13:07:54 -07:00
Sam Lantinga
f789bc7d5f
Updated minimum OS targets on Apple platforms to match supported platforms using Xcode 13
2022-07-26 11:36:01 -07:00
chalonverse
f317d619cc
Xbox GDKX support ( #5869 )
...
* Xbox GDK support (14 squashed commits)
* Added basic keyboard testing
* Update readme
* Code review fixes
* Fixed issue where controller add/removal wasn't working (since the device notification events don't work on Xbox, have to use the joystick thread to poll XInput)
2022-07-01 13:59:14 -07:00
chalonverse
7a02dcf3e6
Add note to GDK docs about XCurl.dll
2022-06-27 23:23:31 -04:00
chalonverse
3b191580c3
Windows GDK Support ( #5830 )
...
* Added GDK
* Simplfied checks in SDL_config_wingdk.h
* Added testgdk sample
* Added GDK readme
* Fixed error in merge of SDL_windows.h
* Additional GDK fixes
* OpenWatcom should not export _SDL_GDKGetTaskQueue
* Formatting fixes
* Moved initialization code into SDL_GDKRunApp
2022-06-27 10:19:39 -07:00
Sam Lantinga
5c1b7f6ea7
Added instructions for updating Makefile.w32 for release
2022-06-16 12:42:45 -07:00
Francisco Javier Trujillo Mata
161a316dfa
Add PS2 readme
2022-06-15 15:15:26 -07:00
Anonymous Maarten
1087eaad7e
cmake: install SDL2::SDL2test when configuring with SDL2_TEST enabled
2022-06-03 12:41:36 -07:00
Michael Fitzmayer
9b75fa0165
N-Gage port: add changes from code reviews, overall cleanup ( #5618 )
...
* Add changes from code review by @ccawley2011, #5597 , overall cleanup
* Update N-Gage README, minor cleanup and rephrasing
* Call SDL_SetMainReady() before calling SDL_main, return SDL_main instead of main
2022-05-11 09:31:34 -07:00
Alex Szpakowski
d35c737f1c
macOS: change min supported OS from 10.6 to 10.7.
2022-05-09 21:53:40 -07:00