SDL_GetWindowFullscreenMode(3)
π SDL_GetWindowFullscreenMode(3) π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where we answer the question: what display mode is this window gonna use when it goes fullscreen? β¨
πΈ NAME πΈ
SDL_GetWindowFullscreenMode β the lil function that queries the display mode to use when a window is visible at fullscreen. π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_video.h>
const SDL_DisplayMode * SDL_GetWindowFullscreenMode(SDL_Window *window);
like. she's simple. she's elegant. she returns a const SDL_DisplayMode *. no cap. π
π¦ FUNCTION PARAMETERS π¦
windowβ the window you wanna query. that's it. that's the whole vibe check. π
π RETURN VALUE π
- Returns a pointer to the exclusive fullscreen mode to use, or
NULLfor borderless fullscreen desktop mode. π«Ά
ngl the NULL case is not an error bestie, it's literally a whole different mode. read the room. π
π§ THREAD SAFETY π§
this function should only be called on the main thread. periodt. don't be out here calling it from some random thread, that's giving chaos and we don't do that. π
β AVAILABILITY β
this function is available since SDL 3.2.0. so if you're on something olderβ¦ yeah no. upgrade era. π
π SEE ALSO π
iykyk β getters and setters are a matched set, go read the other two. π₯
mwah π that's the whole page, and yes it's from Simple Directmedia Layer, SDL 3.4.18, and honestly the date lives in the header where it always does because the footer kept it cute and minimal. go forth and go fullscreen, bestie π¦β¨π
π¦ 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