SDL Wiki Bot
34033d5838
Sync SDL3 wiki -> header
2024-10-01 18:45:52 +00:00
Sam Lantinga
eced9f58a9
Added a userdata parameter for EGL attribute callbacks
...
Fixes https://github.com/libsdl-org/SDL/issues/11013
2024-10-01 11:45:19 -07:00
SDL Wiki Bot
798c9574d0
Sync SDL3 wiki -> header
2024-10-01 17:46:16 +00:00
Sam Lantinga
89e68aa801
Added missing return value documentation for bsearch()
2024-10-01 10:45:32 -07:00
Sam Lantinga
4fa92d233d
Include stdbool.h when using Visual Studio 2017+
...
Also cleaned up some incorrect return values from bool functions.
2024-10-01 09:57:59 -07:00
Anthony
5f5379dc99
Add SDL_IsTV()
( #11004 )
...
Moved SDL_IsAndroidTV() out of public API, to match SDL_IsAndroidTablet().
Added SDL_IsTV(), to mirror existing SDL_IsTablet().
2024-10-01 09:20:00 -07:00
SDL Wiki Bot
6bcf2f919a
Sync SDL3 wiki -> header
2024-10-01 16:16:44 +00:00
Ryan C. Gordon
0b5e01a305
loadso: library handles are now SDL_SharedObject*
instead of void*
.
...
Improved the SDL_loadso.h documentation a little, too.
Fixes #11009 .
2024-10-01 12:16:10 -04:00
SDL Wiki Bot
f351395c46
Sync SDL3 wiki -> header
2024-10-01 15:10:40 +00:00
Sam Lantinga
3234a3b902
Simplified internal SDL_Surface structure
2024-10-01 08:10:04 -07:00
Sam Lantinga
1f3a0d12e6
Made texture size and format public in the API
...
Also added refcount to textures so they can be retained by application code.
2024-10-01 08:10:04 -07:00
Ryan C. Gordon
b4fcd1f345
pen: Corrected some documentation.
...
Fixes #10863 .
2024-10-01 10:24:17 -04:00
Sam Lantinga
e3dbd74fe7
Improved documentation for SDL_Surface fields
2024-09-30 21:34:00 -07:00
SDL Wiki Bot
c16d7c87d6
Sync SDL3 wiki -> header
2024-09-30 18:18:49 +00:00
Sam Lantinga
ab832f1be0
Added documentation for qsort and bsearch functions
2024-09-30 11:18:17 -07:00
SDL Wiki Bot
dcc7560a5c
Sync SDL3 wiki -> header
2024-09-30 17:23:50 +00:00
Evan Hemsley
afdf325fb4
GPU: Add swapchain dimension out params ( #11003 )
2024-09-30 10:23:19 -07:00
Ryan C. Gordon
1787d6ca5c
main: SDL_AppQuit() now reports the result value.
...
Fixes #10994 .
2024-09-29 23:24:04 -04:00
SDL Wiki Bot
62938837c2
Sync SDL3 wiki -> header
2024-09-29 01:10:39 +00:00
Evan Hemsley
fc242abbd2
GPU: recreate swapchain on window pixel size change event ( #10985 )
2024-09-28 18:09:56 -07:00
Sam Lantinga
a923771978
Added SDL_murmur3_32()
2024-09-28 17:19:01 -07:00
Sam Lantinga
039148fb0e
Updated check for stdbool.h
...
If you're building in a C99 or newer environment, we'll automatically include stdbool.h.
If you're building in a C89 or C90 environment, we'll assume that stdbool.h isn't available and define bool as an unsigned char. If you have a working stdbool.h and want SDL to use it, you can either include stdbool.h before SDL headers, or define SDL_INCLUDE_STDBOOL_H in your project.
Closes https://github.com/libsdl-org/SDL/pull/10980
2024-09-28 16:55:09 -07:00
Petar Popovic
dee62e1b47
Remove trailing comma in enum
2024-09-28 17:47:37 +03:00
Ryan C. Gordon
7d21a49c9c
filesystem: SDL_EnumerateDirectoryCallback uses an enum now, not an int.
...
Fixes #10955 .
2024-09-28 01:33:40 -04:00
SDL Wiki Bot
0542bbbf1a
Sync SDL3 wiki -> header
2024-09-27 22:55:29 +00:00
Ryan C. Gordon
428f2f35be
filesystem: SDL_CreateDirectory should make parent directories.
...
Fixes #10502 .
2024-09-27 18:54:18 -04:00
SDL Wiki Bot
8d6b397cd8
Sync SDL3 wiki -> header
2024-09-27 21:11:58 +00:00
Sam Lantinga
3f446d8fb5
Minor cleanup
2024-09-27 14:10:46 -07:00
SDL Wiki Bot
8377cad974
Sync SDL3 wiki -> header
2024-09-27 20:50:17 +00:00
cosmonaut
c39e8298b7
GPU: Document swapchain dimensions
2024-09-27 13:49:27 -07:00
SDL Wiki Bot
0e5a49542d
Sync SDL3 wiki -> header
2024-09-27 20:39:24 +00:00
David Fort
f32e96f5e2
clipboard: add SDL_ClipboardMimeTypes
...
This function allows to retrieve the available mime types without doing any
synthesizing.
2024-09-27 13:38:40 -07:00
SDL Wiki Bot
0befa7d8e9
Sync SDL3 wiki -> header
2024-09-27 20:27:48 +00:00
cosmonaut
eedd2039f9
GPU: 32-bit component texture formats
2024-09-27 16:26:43 -04:00
SDL Wiki Bot
769ff47461
Sync SDL3 wiki -> header
2024-09-27 19:50:13 +00:00
Evan Hemsley
05d0656bd6
GPU: Simultaneous compute pass read-write ( #10965 )
2024-09-27 12:49:37 -07:00
Caleb Cornett
5ff6e8d522
GPU: Add enable_depth_clip to RasterizerState ( #10964 )
2024-09-27 11:18:54 -05:00
Sam Lantinga
04bb105d09
Added header for SDL_ThreadID type
2024-09-27 08:16:49 -07:00
SDL Wiki Bot
c7442b04f0
Sync SDL3 wiki -> header
2024-09-27 07:30:57 +00:00
Evan Hemsley
be401dd1e3
GPU: More robust error reporting ( #10958 )
...
---------
Co-authored-by: Ethan Lee <flibitijibibo@gmail.com>
Co-authored-by: Caleb Cornett <caleb.cornett@outlook.com>
2024-09-27 00:30:18 -07:00
SDL Wiki Bot
0d593cf39a
Sync SDL3 wiki -> header
2024-09-26 23:29:38 +00:00
Ryan C. Gordon
f267ec7681
filesystem: Improve docs, make some promises about overwrites and file caches.
...
Note that SDL_FlushIO() doesn't make promises about file data sync but that
is intended to be changed in the IOStream code in a later commit.
Fixes #10886 .
2024-09-26 19:29:03 -04:00
SDL Wiki Bot
c1587b1eac
Sync SDL3 wiki -> header
2024-09-26 23:26:52 +00:00
Sam Lantinga
125e592844
Added SDL_ShouldInit() and SDL_ShouldQuit()
...
These are handy functions to support thread-safe initialization and shutdown.
2024-09-26 16:26:12 -07:00
Ryan C. Gordon
4e09e58f62
include: Small clarification on directory enumeration documentation.
2024-09-26 16:39:35 -04:00
Anonymous Maarten
345cae361d
Document mode parameter of SDL_GetRenderLogicalPresentation
2024-09-26 16:12:13 +02:00
SDL Wiki Bot
59d69a3ba3
Sync SDL3 wiki -> header
2024-09-26 04:21:40 +00:00
Sam Lantinga
d9a7da4fac
Optimized SDL_HasEvent() and SDL_HasEvents()
...
Also document the counting behavior of SDL_PEEKEVENT.
Fixes https://github.com/libsdl-org/SDL/issues/6209
2024-09-25 21:20:00 -07:00
SDL Wiki Bot
81644d260f
Sync SDL3 wiki -> header
2024-09-25 20:31:24 +00:00
Ryan C. Gordon
122cd4db2b
include: Added \threadsafety
notes to all SDL_render.h functions.
2024-09-25 16:30:04 -04:00
SDL Wiki Bot
276969cd58
Sync SDL3 wiki -> header
2024-09-25 20:27:11 +00:00
Ryan C. Gordon
4c48ff51f8
render: SDL_RenderPresent now behaves when a render target is currently set.
...
It'll temporarily unbind it, draw letterboxing if necessary, present, and
then rebind the previous render target.
2024-09-25 16:26:36 -04:00
Ryan C. Gordon
7a6a0becb8
render: Fixed a FIXME for SDL_SetRenderViewport with a negative size.
2024-09-25 16:26:36 -04:00
Ryan C. Gordon
54459def69
render: Remove the logical presentation render target.
...
Now we render directly to the window, scaling as appropriate. This fixes some
concerns the render target introduced, like the quality of the final scaled
output, how to step outside of the logical size temporarily to draw some
things sharply at the native resolution, and loss of sub-pixel precision.
Fixes #8736 .
2024-09-25 16:26:36 -04:00
Petar Popovic
043c876a15
Move default colorspace aliases into enum
2024-09-23 07:37:02 -07:00
Susko3
0478a6ee3b
Move endian pixel format aliases into enum
...
Matches the same thing in `SDL_AudioFormat`.
2024-09-22 16:34:42 -07:00
Sam Lantinga
b0e528cc88
Switched ifdef from negative to positive
2024-09-21 20:12:54 -07:00
Ozkan Sezer
254b36361e
Add SDL_PRILL? format specifiers specifically for long long type.
2024-09-21 23:03:50 +03:00
Sam Lantinga
6f80d47d64
Use hexidecimal code for ±
2024-09-21 10:43:34 -07:00
Petar Popovic
4392233007
Removed tabs from headers
2024-09-21 10:39:53 -07:00
SDL Wiki Bot
1f727b61f3
Sync SDL3 wiki -> header
2024-09-18 21:04:36 +00:00
Sam Lantinga
398dff7c25
Added support for the HORI licensed Steam Controller
2024-09-18 14:08:32 -07:00
Ozkan Sezer
7edf7fad66
fix bool define when SDL_DEFINE_STDBOOL is defined:
...
it should be unsigned.
2024-09-18 12:17:22 -07:00
Ozkan Sezer
ff90570a3c
define SDL_DEFINE_STDBOOL for gcc < 3
2024-09-18 12:17:22 -07:00
Sam Lantinga
ea640894d3
Fixed SDL_DEFINE_STDBOOL logic if __bool_true_false_are_defined is defined
2024-09-18 10:50:52 -07:00
Sam Lantinga
32fd1878a0
Provide a definition of bool if needed for your environment
2024-09-18 10:37:11 -07:00
SDL Wiki Bot
026d3c2306
Sync SDL3 wiki -> header
2024-09-18 15:33:11 +00:00
Sam Lantinga
a90ad3b0e2
Removed SDL_bool in favor of plain bool
...
We require stdbool.h in the build environment, so we might as well use the plain bool type.
If your environment doesn't have stdbool.h, this simple replacement will suffice:
typedef signed char bool;
2024-09-18 08:32:30 -07:00
SDL Wiki Bot
9dd8859240
Sync SDL3 wiki -> header
2024-09-18 15:19:01 +00:00
Sam Lantinga
bd04459cde
Fix typos (thanks @qndel!)
...
Fix typos in comments and in one case in a returned error ("insuffient -> insufficient" fb273eb)
codespell src/ *.cpp *.h *.hpp --ignore-words-list unknwn,thid,algebric,statics,pixelX,pEvents,caf,ptd,parms,pEvent,parm,TextureRS,TE,HDA,LOD,datas,UE,xwindows,IIF
cd src; git checkout \
events/imKStoUCS.* \
hidapi \
joystick/controller_type.c \
joystick/controller_type.h \
joystick/hidapi/steam/controller_constants.h \
joystick/hidapi/steam/controller_structs.h \
libm \
stdlib/SDL_malloc.c \
stdlib/SDL_qsort.c \
stdlib/SDL_strtokr.c \
video/khronos \
video/x11/edid.h \
video/x11/edid-parse.c \
video/x11/xsettings-client.* \
video/yuv2rgb
2024-09-18 08:18:26 -07:00
SDL Wiki Bot
8481d1a12b
Sync SDL3 wiki -> header
2024-09-17 15:54:09 +00:00
Sam Lantinga
d0edf68774
Added Uint32 versions of the atomic functions
2024-09-17 08:53:27 -07:00
Sam Lantinga
8d223b3037
Renamed atomic functions to match SDL 3.0 naming convention
...
This will also allow us to cleanly add atomic operations for other types in the future.
2024-09-17 08:53:27 -07:00
Sam Lantinga
f3e419596b
Removed SDL_INIT_TIMER
...
This is no longer necessary before calling SDL_AddTimer()
2024-09-17 08:53:27 -07:00
Sam Lantinga
231ea07617
Added SDL_LogTrace()
2024-09-17 02:04:54 -07:00
SDL Wiki Bot
926d143966
Sync SDL3 wiki -> header
2024-09-16 20:12:52 +00:00
Sam Lantinga
1bbc897e48
Updated documentation for bool return type
...
Also updated the test CRC functions to return bool.
2024-09-16 13:12:15 -07:00
SDL Wiki Bot
4a2683e2c1
Sync SDL3 wiki -> header
2024-09-16 20:09:54 +00:00
Sam Lantinga
dc639956ba
Improve logging performance and make log priorities thread-safe
...
Fixes https://github.com/libsdl-org/SDL/issues/9679
2024-09-16 13:09:17 -07:00
SDL Wiki Bot
f006d61bd1
Sync SDL3 wiki -> header
2024-09-16 17:57:51 +00:00
SDL Wiki Bot
fd1fcfc951
Sync SDL3 wiki -> header
2024-09-16 17:19:42 +00:00
Caleb Cornett
9416917353
GPU: Rework MSAA ( #10859 )
2024-09-16 12:19:09 -05:00
Caleb Cornett
4f722d372a
GPU: Metal vertex buffer indices should grow upward ( #10837 )
2024-09-15 20:17:43 -05:00
Sam Lantinga
97d40b9218
Removed SDL_CleanupEnvironment()
2024-09-15 10:00:21 -07:00
SDL Wiki Bot
a7f1deae8d
Sync SDL3 wiki -> header
2024-09-15 16:38:38 +00:00
Sam Lantinga
28b94c4758
Re-added SDL_getenv() as a thread-safe getenv() implementation
2024-09-15 09:37:04 -07:00
Sam Lantinga
19243092c6
Renamed SDL_GpuGraphicsPipelineTargetInfo to SDL_GPUGraphicsPipelineTargetInfo
...
Fixes https://github.com/libsdl-org/SDL/issues/10855
2024-09-15 07:46:26 -07:00
Carl Åstholm
1f3fd65c4c
cpuinfo: Rename SDL_GetCPUCount to SDL_GetNumLogicalCPUCores
...
This was the only API that broke the "GetNumThings" convention
used elsewhere, so renaming it helps with consistency.
Adding "logical cores" to the name also makes it a bit
more immediately obvious what the count actually represents.
2024-09-14 19:33:30 -07:00
Maia
e5bd3bbcd6
add missing includes
2024-09-14 14:38:44 -07:00
Sam Lantinga
8569bde053
Fixed typo
2024-09-14 14:35:57 -07:00
SDL Wiki Bot
706aaaf280
Sync SDL3 wiki -> header
2024-09-14 20:23:16 +00:00
Ryan C. Gordon
3bc0347761
Revert "Sync SDL3 wiki -> header"
...
This reverts commit 35427ff9ec
.
2024-09-14 16:22:16 -04:00
Ryan C. Gordon
c2e4b14a82
Revert "stdinc: Added missing \param
to SDL_CreateEnvironment."
...
This reverts commit 919f8d3e2b
.
2024-09-14 16:22:09 -04:00
Ryan C. Gordon
11c9975caa
Revert "Sync SDL3 wiki -> header"
...
This reverts commit ba65767afa
.
2024-09-14 16:22:00 -04:00
SDL Wiki Bot
ba65767afa
Sync SDL3 wiki -> header
2024-09-14 20:18:20 +00:00
Ryan C. Gordon
919f8d3e2b
stdinc: Added missing \param
to SDL_CreateEnvironment.
2024-09-14 16:17:29 -04:00
SDL Wiki Bot
35427ff9ec
Sync SDL3 wiki -> header
2024-09-14 20:11:24 +00:00
Sam Lantinga
e97f636590
SDL_PROP_PROCESS_CREATE_ENVIRONMENT_POINTER is an SDL_Environment pointer
2024-09-14 12:27:22 -07:00
Sam Lantinga
e673479449
Removed SDL_WriteProcess()
...
This had the unfortunate side-effect of blocking if you tried to write too much. Instead you can use SDL_GetProcessInput() and handle SDL_IO_STATUS_NOT_READY as needed.
Fixes https://github.com/libsdl-org/SDL/issues/10834
2024-09-14 11:15:50 -07:00
ritalat
f6f49de134
Add convenience functions to get process IOStreams
2024-09-14 10:33:29 -07:00