SDL_PROP_GLOBAL_VIDEO_WAYLAND_WL_DISPLAY_POINTER(3)
β¨ NAME β¨
SDL_PROP_GLOBAL_VIDEO_WAYLAND_WL_DISPLAY_POINTER β bestie, this is the pointer to the global wl_display object that the Wayland video backend uses. π¦
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_video.h>
#define SDL_PROP_GLOBAL_VIDEO_WAYLAND_WL_DISPLAY_POINTER "SDL.video.wayland.wl_display"
π DESCRIPTION π
okay so this property is literally the plug between your app/toolkit and SDL's Wayland backend, and it goes both ways depending on when you touch it. π
Before the video subsystem is initialized? You can set it, and that means you're importing an external wl_display object from an application or toolkit so SDL can use it. π«Ά
After initialization? You can read it, and that means you're exporting the wl_display that the Wayland video backend is actually using. π
Now the important bits, no cap:
- Setting this property after the video subsystem has been initialized has no effect. like, zero. nada. the ship has sailed. π
- Reading it while the video subsystem is uninitialized will either give you back the user provided value (if one was set prior to initialization) or
NULL. π
Want the full lore? Go read docs/README-wayland.md for more information. π
π AVAILABILITY π
This macro has been available since SDL 3.2.0. β
and that's the whole page, bestie β brought to you by Simple Directmedia Layer, SDL 3.4.18. mwah, go write something iconic with it. ππ
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms