Introudce Wayland toolkit prototype

This commit is contained in:
eafton 2025-09-23 00:55:19 +03:00
parent 6d0fdb627e
commit 640033e13d
12 changed files with 1517 additions and 3 deletions

View file

@ -3792,6 +3792,43 @@ extern "C" {
*/
#define SDL_HINT_VIDEO_WAYLAND_SCALE_TO_DISPLAY "SDL_VIDEO_WAYLAND_SCALE_TO_DISPLAY"
/**
* A variable controlling whether the built in SDL toolkit is prefered over Zenity
* under the Wayland driver.
*
* When this hint is set, the Wayland driver will use the built in toolkit even
* in cases where Zenity is avalible.
*
* The variable can be set to the following values:
*
* - "0": The built in toolkit is only used in cases where Zenity fails or is unavalible.
* (default)
* - "1": The built in toolkit is always used if available.
*
* This hint should be set before SDL is initialized.
*
* \since This hint is available since SDL 3.?.?.
*/
#define SDL_HINT_VIDEO_WAYLAND_PREFER_TOOLKIT "SDL_VIDEO_WAYLAND_PREFER_TOOLKIT"
/**
* A variable controlling whether the built in SDL toolkit uses fcft or
* built in bitmap fonts.
*
* The fcft library is used over the built in bitmap fonts in cases
* where it is avalible.
*
* The variable can be set to the following values:
*
* - "0": Usage of the fcft library is disabled.
* - "1": Usage of the fcft library is enabled. (default)
*
* This hint should be set before SDL is initialized.
*
* \since This hint is available since SDL 3.?.?.
*/
#define SDL_HINT_VIDEO_WAYLAND_ALLOW_FCFT "SDL_VIDEO_WAYLAND_ALLOW_FCFT"
/**
* A variable specifying which shader compiler to preload when using the
* Chrome ANGLE binaries.

View file

@ -215,6 +215,7 @@
#cmakedefine HAVE_LINUX_INPUT_H 1
#cmakedefine HAVE_LIBUDEV_H 1
#cmakedefine HAVE_LIBDECOR_H 1
#cmakedefine HAVE_FCFT_H 1
#cmakedefine HAVE_LIBURING_H 1
#cmakedefine HAVE_DDRAW_H 1
@ -416,6 +417,7 @@
#cmakedefine SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL @SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL@
#cmakedefine SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR @SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR@
#cmakedefine SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON @SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON@
#cmakedefine SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_FCFT @SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_FCFT@
#cmakedefine SDL_VIDEO_DRIVER_WINDOWS 1
#cmakedefine SDL_VIDEO_DRIVER_X11 1
#cmakedefine SDL_VIDEO_DRIVER_X11_DYNAMIC @SDL_VIDEO_DRIVER_X11_DYNAMIC@