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
Sam Lantinga
aa7357a14d
SDL_CreateEnvironment() fills the environment with a non-zero parameter
2024-09-14 10:29:02 -07:00
Sam Lantinga
76c469910e
Added SDL_PROP_PROCESS_CREATE_BACKGROUND_BOOLEAN
2024-09-14 10:29:02 -07:00
Sam Lantinga
90e01040c5
Added thread-safe environment functions
...
Also marked the existing functions as unsafe, as they can cause crashes if used in multi-threaded applications.
As a bonus, since the new functions are hashtable based, hint environment lookups are much faster.
2024-09-13 22:14:54 -07:00
Ethan Lee
16ff7503b7
gpu: Update GPU support queries to better match naming conventions
2024-09-13 23:08:44 -04:00
SDL Wiki Bot
d21c1de651
Sync SDL3 wiki -> header
2024-09-13 22:20:35 +00:00
Semphris
9eea8234e6
Add SDL_Process subsystem
2024-09-13 15:19:32 -07:00
Sam Lantinga
6c83491116
Added SDL_FlushIO()
...
Also added SDL_PROP_IOSTREAM_FILE_DESCRIPTOR_NUMBER and refactored the internal API to be able to create SDL_IOStream objects from native file handles.
2024-09-13 15:19:32 -07:00
Sam Lantinga
93caf1cd21
Fixed typo
2024-09-13 14:59:52 -07:00
SDL Wiki Bot
1c5b063ade
Sync SDL3 wiki -> header
2024-09-13 20:56:16 +00:00
Sam Lantinga
f1d0a71629
Fixed the documentation for SDL_SetError()
2024-09-13 13:54:54 -07:00
SDL Wiki Bot
d483886ec5
Sync SDL3 wiki -> header
2024-09-13 19:32:14 +00:00
Carl Åstholm
7d94bf528d
stdlib: Document SDL_strtox functions
2024-09-13 12:30:58 -07:00
Carl Åstholm
fb82772fb3
stdlib: Rewrite SDL_strtoull impl
2024-09-13 12:30:58 -07:00
Carl Åstholm
4efbe1ca28
stdlib: Assert that signed integers use two's complement arithmetic
2024-09-13 12:30:58 -07:00
Carl Åstholm
fd53b3e112
stdlib: Rewrite SDL_wcstol impl
...
SDL_wcstol should now fully adhere to the libc spec.
2024-09-13 12:30:58 -07:00
Anonymous Maarten
ee65176eec
SDL_test: add SDLTest_LogEscapedString
2024-09-13 20:52:32 +02:00
Ethan Lee
0160e9eac6
gpu: Add SDL_QueryGPUSupport
2024-09-13 13:42:07 -04:00
SDL Wiki Bot
262ffa27e7
Sync SDL3 wiki -> header
2024-09-13 16:30:11 +00:00
Ethan Lee
96e147b2b9
gpu: Rework driver name queries, add GetGPUShaderFormats
2024-09-13 12:29:40 -04:00
Ethan Lee
371cfaf8fe
gpu: Implement support for SDL_GPU_DISABLED
2024-09-13 10:32:12 -04:00
SDL Wiki Bot
d3932b1ba2
Sync SDL3 wiki -> header
2024-09-12 23:03:48 +00:00
Caleb Cornett
a45a2caf49
GPU: Rename VertexBinding to VertexBufferDescription ( #10811 )
2024-09-12 18:02:39 -05:00
Evan Hemsley
66489f91bb
GPU: Cube Arrays ( #10800 )
...
---------
Co-authored-by: Caleb Cornett <caleb.cornett@outlook.com>
2024-09-12 13:41:46 -07:00
SDL Wiki Bot
f8d4c49264
Sync SDL3 wiki -> header
2024-09-12 14:11:07 +00:00
Caleb Cornett
d5e1385c91
Fixed typos in SDL_gpu.h
2024-09-12 09:10:20 -05:00
SDL Wiki Bot
6e2f2428ba
Sync SDL3 wiki -> header
2024-09-12 06:31:07 +00:00
Caleb Cornett
ddd5723e2e
GPU: Remove pitch parameters from indirect draw calls ( #10803 )
2024-09-11 23:30:14 -07:00
Sam Lantinga
b15fab0207
Fixed typo in SDL_dialog.h
2024-09-11 17:35:23 -07:00
cosmonaut
d62e3c3791
Fix SDL_GPUShaderFormat flag values
...
Fixes #10797
2024-09-11 15:40:13 -07:00
Sam Lantinga
77c569496d
SDL_GPUShaderFormat isn't an enum anymore
2024-09-11 09:32:17 -07:00
Sam Lantinga
37c9fb490e
Changed enums to use XXX_COUNT for the count or number of values
...
Fixes https://github.com/libsdl-org/SDL/issues/10763
2024-09-11 09:32:17 -07:00
SDL Wiki Bot
eeb465e2fc
Sync SDL3 wiki -> header
2024-09-11 02:20:48 +00:00
Evan Hemsley
2b8a349b26
Add SDL_BindGPUComputeSamplers ( #10778 )
...
---------
Co-authored-by: Caleb Cornett <caleb.cornett@outlook.com>
2024-09-10 19:20:14 -07:00
Evan Hemsley
0b6f993dea
GPU: Zero-init handling ( #10786 )
2024-09-10 18:17:08 -07:00
Sam Lantinga
817f1b3da8
Revert "Changed SDL_GPU_TEXTUREFORMAT_INVALID to 0"
...
This reverts commit b51c6551d6 .
2024-09-10 09:22:49 -07:00
Sam Lantinga
b51c6551d6
Changed SDL_GPU_TEXTUREFORMAT_INVALID to 0
...
This is more in line with SDL's convention and makes it easier to do zero-based structure initialization.
2024-09-10 08:37:52 -07:00
Sam Lantinga
4eb4370500
SDL_strtoll(), SDL_strtoull(), SDL_lltoa(), and SDL_ulltoa() use long long values
2024-09-09 15:46:26 -07:00
SDL Wiki Bot
68c61ff3a8
Sync SDL3 wiki -> header
2024-09-09 21:01:45 +00:00
Sam Lantinga
6fc6e3dc7e
Use SDL_bool where appropriate in SDL events
...
This involved changing button state from Uint8 to SDL_bool, and made SDL_PRESSED and SDL_RELEASED unnecessary.
Fixes https://github.com/libsdl-org/SDL/issues/10069
2024-09-09 14:00:19 -07:00
SDL Wiki Bot
7d1bbae6b2
Sync SDL3 wiki -> header
2024-09-09 20:51:57 +00:00
Carl Åstholm
af37056c0d
stdinc: Fix typos and reword comments about aliasing
2024-09-09 13:51:16 -07:00
Carl Åstholm
8eb194b6f8
stdinc: Document number parsing APIs
2024-09-09 13:51:16 -07:00
Carl Åstholm
eda459ac49
stdinc: Fix up some printf definitions
2024-09-09 13:51:16 -07:00
Carl Åstholm
d6caf2abe7
Remove SDL_RESTRICT in favor of doc comments
2024-09-09 13:51:16 -07:00
Carl Åstholm
731939fca1
stdinc: Document memcpy APIs
2024-09-09 13:51:16 -07:00
Carl Åstholm
8cea4bd3c9
stdinc: Document memory allocation APIs
2024-09-09 13:51:16 -07:00
Simon McVittie
7713a7eec7
x11vulkan: Use the correct SONAME of libX11-xcb.so.1 on Linux, etc.
...
On most Unix platforms supported by SDL, the canonical name used to load
a library at runtime includes its ABI major version, and the name
without a version is not guaranteed to exist on non-developer systems.
libX11-xcb.so.1 is correct on Linux, and probably on other Unix
platforms like FreeBSD.
A notable exception is OpenBSD, which apparently does not use
ABI-suffixed names, so continue to use libX11-xcb.so there.
Signed-off-by: Simon McVittie <smcv@collabora.com>
2024-09-09 12:27:54 -07:00
Ryan C. Gordon
412a8244b6
audio: Make system-specific audio format types part of SDL_AudioFormat.
...
This keeps them all in the same place, and merges them into the documentation.
2024-09-09 15:17:18 -04:00
cosmonaut
d3091b9538
Remove SDL_GPUDepthStencilValue struct
2024-09-09 10:55:05 -07:00
Evan Hemsley
668e2f82d2
Add load op and clear color to SDL_BlitGPUTexture ( #10767 )
2024-09-09 10:19:52 -07:00
SDL Wiki Bot
6e885d9619
Sync SDL3 wiki -> header
2024-09-09 06:56:45 +00:00
SDL Wiki Bot
301f3ffa9d
Sync SDL3 wiki -> header
2024-09-09 06:50:28 +00:00
Ryan C. Gordon
050aa4d084
include: Filling in more documentation gaps.
2024-09-09 02:49:43 -04:00
Maia
0da2bd49c8
Remove unused includes. This only removes includes that aren't used at all, not even in comments.
2024-09-08 17:11:23 -07:00
Sam Lantinga
7df1caba7c
Clarified that the contents of new textures aren't defined.
2024-09-08 07:23:17 -07:00
Anonymous Maarten
ac0b1b207f
SDL_hints: fix gpu direct3d11 driver name in documentation
...
This was renamed in b17ca32d8c
2024-09-08 15:56:17 +02:00
SDL Wiki Bot
1ba99c53d4
Sync SDL3 wiki -> header
2024-09-08 04:22:26 +00:00
SDL Wiki Bot
2b77b2e4ef
Sync SDL3 wiki -> header
2024-09-08 04:18:26 +00:00
Ryan C. Gordon
4f6e81cf62
include: Fixed up some minor documentation gaps.
2024-09-08 00:17:53 -04:00
SDL Wiki Bot
7ec998819d
Sync SDL3 wiki -> header
2024-09-07 23:13:46 +00:00
Maia
fd6056307f
fix trailing doc comments
2024-09-07 09:11:13 -07:00
cosmonaut
1a13acac09
Always blit to the swapchain in GPU_RenderPresent
...
Fixes #10744
2024-09-07 08:43:02 -07:00
Maia
fa892d15b7
include files with required types directly
2024-09-07 08:37:46 -07:00
SDL Wiki Bot
e9c7b36fbd
Sync SDL3 wiki -> header
2024-09-07 15:30:40 +00:00
Evan Hemsley
68a9991ec9
GPU: Document structs ( #10742 )
2024-09-07 08:29:14 -07:00
Sam Lantinga
a01e8a5e10
The GPU log category ate one of the SDL reserved categories
...
Fixes https://github.com/libsdl-org/SDL/issues/10739
2024-09-07 07:54:13 -07:00
SDL Wiki Bot
f42da35ef9
Sync SDL3 wiki -> header
2024-09-06 23:39:48 +00:00
Caleb Cornett
9730f62e8c
GPU: Rename struct members and parameters for SDL3 naming conventions ( #10730 )
...
---------
Co-authored-by: Evan Hemsley <2342303+thatcosmonaut@users.noreply.github.com>
2024-09-06 16:38:23 -07:00