Maia
58f6e9c278
Fix trailing doc comments
2025-03-14 10:04:32 -07:00
SDL Wiki Bot
f15832c685
Sync SDL3 wiki -> header
...
[ci skip]
2025-03-14 16:40:38 +00:00
Temdog007
17b84dbcf3
emscripten: add window properties for canvas ID and keyboard element ( #12509 )
...
Move hints used by Emscripten to window properties. This change will be necessary if multiple windows for Emscripten will be supported in the future.
- Added Window Create Property SDL_PROP_WINDOW_CREATE_EMSCRIPTEN_CANVAS_ID
- Added Window Create Property SDL_PROP_WINDOW_CREATE_EMSCRIPTEN_KEYBOARD_ELEMENT
- Use hint SDL_HINT_EMSCRIPTEN_CANVAS_SELECTOR as override to SDL_PROP_WINDOW_CREATE_EMSCRIPTEN_CANVAS_ID
- Use hint SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT as override to SDL_PROP_WINDOW_CREATE_EMSCRIPTEN_KEYBOARD_ELEMENT
2025-03-14 09:39:46 -07:00
Sam Lantinga
ffe69fc354
Fixed SDL_GPUTextureSupportsSampleCount() documentation
...
Fixes https://github.com/libsdl-org/sdlwiki/issues/751
2025-03-14 09:30:19 -07:00
SDL Wiki Bot
e671bc2658
Sync SDL3 wiki -> header
...
[ci skip]
2025-03-14 16:27:22 +00:00
Sam Lantinga
02faa8f75c
Rename SDL_SetGPURenderStateFragmentUniformData() to SDL_SetGPURenderStateFragmentUniforms()
2025-03-14 09:26:30 -07:00
Sam Lantinga
2aee105b43
Added support for custom shaders with the GPU renderer
...
Added an example of MSDF font rendering with the SDL 2D renderer
2025-03-14 09:26:30 -07:00
SDL Wiki Bot
eb56c8af85
Sync SDL3 wiki -> header
...
[ci skip]
2025-03-14 12:49:08 +00:00
Sam Lantinga
3e9e22f17d
Added SDL_SCALEMODE_PIXELART
...
This is based on the algorithm presented by t3ssel8r:
https://www.youtube.com/watch?v=d6tp43wZqps
2025-03-13 09:48:37 -07:00
Ryan C. Gordon
c318b1f926
SDL_mutex.h: Fixed code example.
2025-03-13 10:08:32 -04:00
SDL Wiki Bot
71c4de190c
Sync SDL3 wiki -> header
...
[ci skip]
2025-03-12 22:23:23 +00:00
SDL Wiki Bot
fc35107854
Sync SDL3 wiki -> header
...
[ci skip]
2025-03-07 17:01:23 +00:00
SDL Wiki Bot
55695d3725
Sync SDL3 wiki -> header
...
[ci skip]
2025-03-06 20:23:18 +00:00
Sam Lantinga
cb099ebd4f
Make texture scale mode a part of the 2D renderer draw state
...
Also added texture addressing mode support to the PSP and Vita renderers (untested)
Fixes https://github.com/libsdl-org/SDL/issues/12461
2025-03-05 21:35:04 -08:00
SDL Wiki Bot
bdde074688
Sync SDL3 wiki -> header
...
[ci skip]
2025-03-05 22:49:13 +00:00
SDL Wiki Bot
f01bcaeb17
Sync SDL3 wiki -> header
...
[ci skip]
2025-03-05 17:08:00 +00:00
Sam Lantinga
fe9bdcf508
Added SDL_HINT_VIDEO_X11_EXTERNAL_WINDOW_INPUT
2025-03-05 09:07:05 -08:00
SDL Wiki Bot
9f557941f3
Sync SDL3 wiki -> header
...
[ci skip]
2025-03-05 15:25:22 +00:00
Sam Lantinga
8f40dad460
Document the thread safety of SDL surface functions
2025-03-05 07:24:24 -08:00
Sam Lantinga
5d20bbf348
Presenting while drawing to a render target should fail.
...
People are adding present calls while rendering to render targets, not understanding that this doesn't make sense, and wondering why they get flicker on some systems. If there are programs that relied on the previous behavior we can add a hint to control this.
Fixes https://github.com/libsdl-org/SDL/issues/12432
2025-03-04 08:46:13 -08:00
SDL Wiki Bot
7df0ffd436
Sync SDL3 wiki -> header
...
[ci skip]
2025-03-04 13:27:13 +00:00
SDL Wiki Bot
c3b415641a
Sync SDL3 wiki -> header
...
[ci skip]
2025-03-02 15:56:34 +00:00
SDL Wiki Bot
2a0223487f
Sync SDL3 wiki -> header
...
[ci skip]
2025-03-02 15:55:59 +00:00
expikr
5373271a12
forbid transform change while relative mode active
2025-03-02 07:53:09 -08:00
expikr
428f0dcd61
add SDL_SetRelativeMouseTransform
2025-03-02 07:53:09 -08:00
Arkadiusz Lach
e25ee22469
Added tiled 9-grid texture rendering function
...
* New function SDL_RenderTexture9GridTiled, borders and center is tiled instead of stretched
2025-03-02 07:52:25 -08:00
SDL Wiki Bot
954675b32a
Sync SDL3 wiki -> header
...
[ci skip]
2025-03-02 15:52:11 +00:00
Arkadiusz Lach
44bca81fdd
Change default texture scale mode per renderer
...
* SDL_SetDefaultTextureScaleMode(SDL_Renderer *renderer, SDL_ScaleMode scale_mode)
* SDL_GetDefaultTextureScaleMode(SDL_Renderer *renderer, SDL_ScaleMode *scale_mode)
2025-03-02 07:51:17 -08:00
Sam Lantinga
b0df1cbbef
Updated to version 3.3.0 for development
2025-03-01 19:31:00 -08:00
Sam Lantinga
292e431748
Updated to version 3.2.6 for release
2025-03-01 18:30:34 -08:00
SDL Wiki Bot
ee5f5c9172
Sync SDL3 wiki -> header
...
[ci skip]
2025-03-01 16:26:19 +00:00
Sam Lantinga
6e4193b743
Note that the file names are UTF-8 encoded
2025-03-01 08:25:31 -08:00
SDL Wiki Bot
7ab1412e20
Sync SDL3 wiki -> header
...
[ci skip]
2025-02-28 21:21:47 +00:00
SDL Wiki Bot
54c7aa9c90
Sync SDL3 wiki -> header
...
[ci skip]
2025-02-28 00:42:06 +00:00
Ryan C. Gordon
35e8cf8ee6
render: allow render targets to use logical presentation.
...
Fixes https://github.com/libsdl-org/sdl2-compat/issues/279
2025-02-27 19:41:11 -05:00
SDL Wiki Bot
56e2955b6a
Sync SDL3 wiki -> header
...
[ci skip]
2025-02-26 21:03:33 +00:00
SDL Wiki Bot
38a73a1783
Sync SDL3 wiki -> header
...
[ci skip]
2025-02-25 18:29:56 +00:00
Sam Lantinga
29df99ee38
Clarified SDL_RenderReadPixels() documentation
...
Clarified that the rect to be read is clipped against the current viewport, not actually relative to it.
Also added a note for people using SDL_SetRenderLogicalPresentation() so they know they have to map between logical space and render space if they want to read back.
2025-02-25 10:28:57 -08:00
Sam Lantinga
1c2189c7c9
strings.h isn't available in Windows environments
...
I believe this header isn't necessary for clang-tidy, string.h has all the functions we care about.
Fixes https://github.com/libsdl-org/SDL/issues/12238
2025-02-25 09:41:50 -08:00
SDL Wiki Bot
ffdca343fb
Sync SDL3 wiki -> header
...
[ci skip]
2025-02-25 16:58:12 +00:00
Sam Lantinga
ac5fca4ae5
Clarify the expected usage of SDL_StorageReady()
...
Fixes https://github.com/libsdl-org/SDL/issues/12201
2025-02-25 08:56:56 -08:00
SDL Wiki Bot
fc365e945a
Sync SDL3 wiki -> header
...
[ci skip]
2025-02-25 16:39:56 +00:00
Sam Lantinga
ad840e8796
Better document that main functionality is in SDL_main.h
...
Fixes https://github.com/libsdl-org/SDL/issues/12159
2025-02-25 08:38:39 -08:00
SDL Wiki Bot
bb8dcf08e7
Sync SDL3 wiki -> header
...
[ci skip]
2025-02-25 15:54:44 +00:00
SDL Wiki Bot
0a592b78c1
Sync SDL3 wiki -> header
...
[ci skip]
2025-02-24 23:12:58 +00:00
Tomasz Pakuła
58388e8db4
Add SDL_HINT_JOYSTICK_HAPTIC_AXES
...
Allows users to overwrite the number of haptic axes defined for a given
joystick. Also supports a "wildcard" VID:PID of `0xFFFF/0xFFFF`
2025-02-24 15:12:04 -08:00
Caleb Cornett
60b7faa987
gpu: Validate that reserved struct members are unset
2025-02-24 08:57:09 -08:00
SDL Wiki Bot
deadfe0c98
Sync SDL3 wiki -> header
...
[ci skip]
2025-02-23 20:20:09 +00:00
Caleb Cornett
ea77472d75
Document/ignore GPU features without universal support
2025-02-23 12:19:12 -08:00
Timothee "TTimo" Besset
fa380a4004
Update include/SDL3/SDL_assert.h
...
Co-authored-by: Sam Lantinga <slouken@libsdl.org >
2025-02-21 11:07:54 -08:00