Maia
d50520462a
Add and use SDL_HapticEffectID typedef
2025-04-24 08:51:55 -07:00
Sam Lantinga
89d7d406ab
Added tests to cover invalid surface blits
...
Reproduction case for https://github.com/libsdl-org/SDL/issues/12844
2025-04-22 13:05:38 -07:00
Topi-Matti Ritala
f7b7188837
Add SDL_CreateGPURenderer
2025-04-07 09:26:03 -07:00
Temdog007
cc8ec6cf18
Handle global mouse state for Emscripten ( #12669 )
2025-04-02 07:21:21 -07:00
Anonymous Maarten
e87a00c07c
tests: port failing SDL_Renderer test from pysdl2 to testautomation
...
(cherry picked from commit 8436ce98b4
)
2025-04-01 21:31:10 +02:00
Anonymous Maarten
10819273bf
tests: port failing SDL_Renderer test from pysdl2 to testautomation
...
(cherry picked from commit 7d8a6f1603
)
2025-04-01 21:31:10 +02:00
Anonymous Maarten
ffbd434a11
tests: port failing window test from pysdl2 to testautomation
...
(cherry picked from commit 4f488b9be2
)
2025-04-01 21:31:10 +02:00
Anonymous Maarten
2775e7a78f
tests: port failing SDL_Rect tests from pysdl2 to testautomation
...
(cherry picked from commit 39bb71c442
)
2025-04-01 21:31:10 +02:00
Anonymous Maarten
39eed1d233
tests: port failing SDL_Hint tests from pysdl2 to testautomation
...
(cherry picked from commit 177fb9cb6c
)
2025-04-01 21:31:10 +02:00
Sam Lantinga
3fd61b0535
Updated for SDL style
2025-03-20 16:42:40 -07:00
Temdog007
581b614291
Emscripten: Support Custom Message Boxes ( #12583 )
...
* Allow custom message boxes with colors and multiple buttons to work if Asyncify is enabled
* Keep old functionality of using alert when Asyncify is not available
* Update testmessage to allow for setting random colors as the color scheme of the message box
2025-03-20 16:33:06 -07:00
Sam Lantinga
476e7e54cb
Don't create surfaces with invalid pixel formats
...
Fixes https://github.com/libsdl-org/SDL/issues/12556
2025-03-20 09:42:52 -07:00
Anonymous Maarten
9820f655dd
android: reduce visiblity as much as possible
2025-03-19 23:36:08 +01:00
Sam Lantinga
efe122be4d
Removed width/height parameters from LoadTexture()
...
You can directly access the texture width and height now.
2025-03-14 11:38:13 -07:00
Sam Lantinga
dcb97a5f49
Set a default shader entry point
...
The default should be the entrypoint generated by SDL_shadercross. That way it doesn't need to be hand-specified in the common workflow.
2025-03-14 11:38:13 -07:00
Sam Lantinga
02faa8f75c
Rename SDL_SetGPURenderStateFragmentUniformData() to SDL_SetGPURenderStateFragmentUniforms()
2025-03-14 09:26:30 -07:00
Sam Lantinga
96194347bc
Added an example of fullscreen shader effects with the GPU renderer
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
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
Sam Lantinga
be6ed6e9c4
Fixed sscanf("026", "%1x%1x%1x", &r, &g, &b)
...
Fixes https://github.com/libsdl-org/SDL/issues/12510
2025-03-10 14:45:08 -07:00
Sam Lantinga
e20e27e1fb
Added SIMD blitters for 8888 -> 8888 format conversion
2025-03-06 02:14:54 -08: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
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
Frank Praznik
edaf447678
tests: Add showing/setting the primary selection text to testclipboard
2025-02-27 12:35:37 -05:00
Sam Lantinga
049a7a04de
Wake the main thread for main function dispatch
...
Also added a test case to catch the main thread waiting indefinitely when a function is pending.
Fixes https://github.com/libsdl-org/SDL/issues/12390
2025-02-25 12:50:41 -08:00
Sam Lantinga
6980325310
Added support for the "%n" sscanf format specifier
2025-02-24 20:02:59 -08:00
Sam Lantinga
bc85c55350
testcontroller: create window with high pixel density
...
This improves the picture quality when running on an iPhone.
2025-02-22 09:02:01 -08:00
Anonymous Maarten
5c214e5e9c
testcamera: SDL_AppQuit destroys state and SDL
...
This fixes a double-free of SDLTest_CommonState
2025-02-21 23:04:13 -08:00
Petar Popovic
b5297de56f
Add 'const' to pointer parameters
2025-02-21 15:59:40 -08:00
Petar Popovic
c70f54e28b
Remove redundant casts
2025-02-21 10:09:10 -08:00
Sam Lantinga
f24f9d3bed
Revert "testcamera: added support for Motion JPEG camera frames"
...
This reverts commit 5ccee77190
.
2025-02-20 12:16:26 -08:00
Petar Popovic
045a4492f1
test/testaudio.c: Fix use-after-free warning
2025-02-16 19:35:54 -08:00
Petar Popovic
da2460f9e7
test/testautomation_audio.c: Free variables before returning
2025-02-16 16:57:56 -08:00
Petar Popovic
831fc70923
test/testautomation_intrinsics.c: Free variables before returning
2025-02-16 07:50:07 -08:00
Sam Lantinga
5ccee77190
testcamera: added support for Motion JPEG camera frames
2025-02-10 17:18:16 -08:00
Sam Lantinga
c4550d906a
testcontroller: show the gamepad device type
2025-02-05 08:27:26 -08:00
Petar Popovic
8ccf85c59e
Formatting spaces around pointer symbol.
2025-02-03 17:03:26 -08:00
Sam Lantinga
409f3ade88
Removed SDF test program
...
There's a much better example of SDF support in testgputext in SDL_ttf
2025-01-29 04:15:27 -08:00
Sam Lantinga
4176e188bf
Enable testgles2 on all platforms
...
We use SDL's headers so we're not dependent on system OpenGL header availability.
2025-01-29 04:03:31 -08:00
Petar Popovic
a336b62d8b
Remove newlines from error messages
2025-01-23 11:45:04 -08:00
Petar Popovic
983cfe8b1c
Remove even more newlines from log messages
2025-01-23 09:32:50 -08:00
nightmareci
718034f5fa
Remove newlines from log messages
2025-01-22 20:25:04 -08:00
Anonymous Maarten
cb3cc28809
emscripten: pass --no-sandbox to the chrome web driver
...
This fixes running the Emscripten tests on Ubuntu 24.04.
2025-01-22 02:48:32 +01:00
Anonymous Maarten
efa6e7aece
android: add style to test apk's
2025-01-21 20:20:17 +01:00
Sam Lantinga
9b454a762c
Revert "testautomation: don't validate alpha values on XRGB formats"
...
This reverts commit 759e01bd64
.
It's better to return the expected format from SDL_RenderReadPixels() than skip alpha testing.
2025-01-20 12:57:48 -08:00
Frank Praznik
819628c6bf
testautomation: Remove Win32 borderless resizable hint
...
This defaults to 'true' now, so setting it manually is no longer necessary.
2025-01-20 14:49:35 -05:00
Sam Lantinga
759e01bd64
testautomation: don't validate alpha values on XRGB formats
...
The results are not defined, and some renderers set 0xFF always and other renderers set the alpha to blend results, even though it won't be used when rendering.
Fixes --filter render_testBlendModes with D3D renderers
2025-01-20 11:29:41 -08:00
Sam Lantinga
362f96a6cf
testcontroller: use SDL_MAIN_USE_CALLBACKS so updates happen during live resizing
2025-01-20 10:11:31 -08:00
Sam Lantinga
b716eeefef
testtray: minor cleanup
2025-01-19 18:53:55 -08:00
Ryan C. Gordon
874c07f8de
storage: Don't allow "." and ".." paths, enforce '/' dir separators.
...
Also clarify what characters are valid for Storage paths in the category docs.
Fixes #11079 .
Fixes #11370 .
Fixes #11369 .
2025-01-16 08:19:28 -05:00