Ryan C. Gordon
6ba90f7775
render: Batching is always enabled now!
...
Make sure your app uses SDL_RenderFlush() before it talks to D3D/OpenGL/etc!
Fixes #8584 .
2023-11-23 20:37:52 -05:00
Sam Lantinga
81fc7ded78
Removed the window shape API for SDL 3.0
...
Fixes https://github.com/libsdl-org/SDL/issues/6654
Fixes https://github.com/libsdl-org/SDL/issues/6897
2023-11-22 14:11:10 -08:00
Sam Lantinga
5c8c3931f2
Removed outdated information about SDL_GetWindowWMInfo()
2023-11-16 09:56:16 -08:00
Sam Lantinga
e0d0d140b2
Fixed SDL_GetWindowWMInfo() code example
2023-11-16 09:55:06 -08:00
Sam Lantinga
e0c45c6c98
Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL
2023-11-14 06:06:51 -08:00
Sam Lantinga
229b7b9d50
SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties()
...
This is a more general interface that can be extended in the future as needed.
2023-11-14 06:06:51 -08:00
Sam Lantinga
1c4723ac66
SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options.
2023-11-12 21:58:58 -08:00
Sam Lantinga
2991b9f6ac
SDL now represents gamepad buttons as positional elements with a separate label
...
This gives applications and binding systems a clearer view of what the hardware is so they can make intelligent decisions about how to present things to the user.
Gamepad mappings continue to use abxy for the face buttons for simplicity and compatibility with earlier versions of SDL, however the "SDL_GAMECONTROLLER_USE_BUTTON_LABELS" hint no longer has any effect.
Fixes https://github.com/libsdl-org/SDL/issues/6117
2023-11-10 12:21:43 -08:00
Sam Lantinga
fd4a2cce9e
SDL_syswm.h has been removed and replaced with window properties
2023-11-08 12:01:48 -08:00
Sam Lantinga
a1941fad6c
Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties.
2023-11-08 12:01:48 -08:00
Ryan C. Gordon
2f92807087
vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator.
...
Fixes #3638 .
2023-11-06 13:31:20 -05:00
Sam Lantinga
20cd789bab
Improved migration documentation for the event memory change.
2023-11-05 21:20:48 -08:00
Sam Lantinga
70c149c88f
Automatically clean up memory associated with events
2023-11-05 09:14:11 -08:00
SDL Wiki Bot
ff3c20a799
Sync SDL3 wiki -> header
2023-11-05 14:11:05 +00:00
SDL Wiki Bot
17a0fe3a0c
Sync SDL3 wiki -> header
2023-11-05 14:06:05 +00:00
SDL Wiki Bot
14d2471a8f
Sync SDL3 wiki -> header
2023-11-05 14:04:05 +00:00
SDL Wiki Bot
2ad22eeeb5
Sync SDL3 wiki -> header
2023-11-05 14:02:06 +00:00
Sam Lantinga
75ea3a8d32
Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events
...
This prevents input text from being split across Unicode combining or modifier characters, and in practice allocations will rarely happen.
2023-11-04 20:55:10 -07:00
Sam Lantinga
46b940d571
Updated documentation to note that the event callback is called on the same thread as the main iteration callback
2023-11-04 11:31:54 -07:00
Sam Lantinga
274da8561c
Updated the migration guide to note that you can check the return value of SDL_AddEventWatch()
2023-11-04 10:42:28 -07:00
Ryan C. Gordon
a19029e3c1
docs: Updated README-main-functions.md based on feedback.
2023-11-04 10:03:10 -04:00
Sam Lantinga
7e445da569
Added SDL_CleanupEvent()
...
This is used to free any dynamically allocated memory in events.
2023-11-04 06:47:24 -07:00
SDL Wiki Bot
cf7e5bd0e8
Sync SDL3 wiki -> header
2023-11-03 15:41:14 +00:00
Ryan C. Gordon
853c28e624
docs: Added first draft of README-main-functions.md
...
Reference PR #8247 .
2023-11-03 11:39:53 -04:00
Sam Lantinga
ea02630143
More audio migration clarification
2023-11-03 00:28:05 -07:00
Sam Lantinga
14980b25a8
Clarify documentation for audio callback migration
2023-11-02 22:32:25 -07:00
Ryan C. Gordon
5b3a2c6df6
docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md.
...
Reference PR #8457 .
2023-11-02 14:57:13 -04:00
Ryan C. Gordon
e6116d399a
mutex: Removed SDL_MUTEX_MAXWAIT.
...
Fixes #8436 .
2023-10-26 14:21:53 -04:00
Ryan C. Gordon
899eb0d042
thread: Locking mutexes and rwlocks are now void functions.
...
Almost nothing checks these return values, and there's no reason a valid
lock should fail to operate. The cases where a lock isn't valid (it's a
bogus pointer, it was previously destroyed, a thread is unlocking a lock it
doesn't own, etc) are undefined behavior and always were, and should be
treated as an application bug.
Reference Issue #8096 .
2023-10-26 08:57:34 -04:00
Sam Lantinga
c98a14fdeb
Renamed display added/removed events for consistency with the rest of the API
...
Fixes https://github.com/libsdl-org/SDL/issues/8425
2023-10-23 09:14:54 -07: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
321fc18417
README-migration.md: Added note about SDL_HasRDTSC removal.
...
Fixes #8374 .
2023-10-11 01:20:18 -04:00
Sam Lantinga
859dc14add
Replaced SDL_GetGamepadBindForAxis() and SDL_GetGamepadBindForButton() with SDL_GetGamepadBindings()
2023-09-13 23:01:28 -07:00
Sam Lantinga
9e50048ab6
Revert "Removed SDL_GamepadBinding from the API"
...
This reverts commit eb0955ef89
.
2023-09-13 22:42:47 -07:00
Ryan C. Gordon
9da34e8fb5
docs: Updated README-emscripten.md.
...
This is updated from the rewrite in the SDL2 branch.
2023-09-12 21:27:40 -04:00
Ryan C. Gordon
cb44146089
docs: Whoops, this got added by the wiki bridge by accident!
2023-09-12 17:36:02 -04:00
Sam Lantinga
cd633b9a88
Renamed SDL_IsAudioDevicePaused() to SDL_AudioDevicePaused()
...
This aligns with the SDL3 convention of removing "Is" from self-explanatory function names
Also improved some documentation in SDL_audio.h
2023-09-12 12:11:09 -07:00
SDL Wiki Bot
c6cad07faa
Sync SDL3 wiki -> header
2023-09-12 18:28:12 +00:00
Sam Huang
e22282b097
Added README about transparent windows in Win32
2023-09-11 22:35:05 -07:00
Sam Lantinga
233789b0d1
Audio types have the same naming convention as other SDL endian types, e.g. [S|U][BITS][LE|BE]
...
Native endian types have no LE/BE suffix
2023-09-04 09:48:44 -07:00
SDL Wiki Bot
8387fae698
Sync SDL3 wiki -> header
2023-09-03 15:11:13 +00:00
Frank Praznik
8321813452
docs: Add note about Wayland application icons
...
Wayland doesn't support programmatically setting the app icon, so note this restriction and specify that a desktop entry file that points to the desired icon image is required.
2023-09-03 11:10:29 -04:00
Sam Lantinga
e0ab597549
Simplified SDL_main.h migration notes
...
Thanks for the feedback!
https://github.com/exult/exult/issues/379#issuecomment-1701066992
2023-08-31 09:29:59 -07:00
Ryan C. Gordon
58c859f64d
audio: Rename SDL_GetAudioStreamBinding to SDL_GetAudioStreamDevice.
2023-08-27 16:54:30 -04:00
Ryan C. Gordon
1e775e0eef
audio: Replace SDL_CreateAndBindAudioStream with SDL_OpenAudioDeviceStream.
...
This is meant to offer a simplified API for people that are either migrating
directly from SDL2 with minimal effort or just want to make noise without
any of the fancy new API features.
Users of this API can just deal with a single SDL_AudioStream as their only
object/handle into the audio subsystem.
They are still allowed to open multiple devices (or open the same device
multiple times), but cannot change stream bindings on logical devices opened
through this function.
Destroying the single audio stream will also close the logical device behind
the scenes.
2023-08-27 16:54:30 -04:00
Sam Lantinga
615824a806
Updated documentation now that SDL_GetAudioDevices() has been split into separate functions for output and capture devices
2023-08-26 17:30:57 -07:00
Ethan Lee
c0cd8c8142
gdk: Add SDL_GDKGetDefaultUser, SDL_GetPrefPath implementation
2023-08-25 10:40:16 -04:00
Sam Lantinga
1e9d314482
Updated to Android minSdkVersion 19 and targetSdkVersion 34
...
This is updated to meet the latest requirements for apps on the Google Play store
2023-08-24 08:23:06 -07:00
Simon McVittie
efe15588d5
Relabel back paddles as left or right
...
The sequence order of the four paddles is not obvious, with SDL and Xbox
controllers swapping the order of P2 and P3 relative to each other.
If we group them into left and right, then it becomes more obvious.
Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-08-09 11:03:30 -07:00
Sam Lantinga
279ff8909f
Changed example code to avoid potential divide by zero
2023-08-08 16:52:09 -07:00