SDL_WINDOWPOS_UNDEFINED(3)
π SDL_WINDOWPOS_UNDEFINED π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where we talk about the macro that literally means "idk, you pick" π
β¨ NAME β¨
SDL_WINDOWPOS_UNDEFINED β the lil' macro you use when you genuinely do not care what the window position or the display is π«Ά
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_video.h>
#define SDL_WINDOWPOS_UNDEFINED SDL_WINDOWPOS_UNDEFINED_DISPLAY(0)
π¦ DESCRIPTION π¦
so basically it's giving "whatever, you decide" energy. This macro always uses the primary display π
no cap, that's the whole vibe. you hand over the decision-making to SDL and it goes with the primary display every single time. main character behavior, honestly.
β AVAILABILITY β
This macro is available since SDL 3.2.0. so if you're on anything older, sorry babe, it's not there yet π
π SEE ALSO π
SDL_SetWindowPosition(3)β go peek at this one too, iykyk π
and that's the whole page, bestie!! π this lil' gem comes to you from Simple Directmedia Layer, version SDL 3.4.18, and yes the header/footer said SDL_WINDOWPOS_UNDEFINED(3) on both ends because symmetry is iconic β¨π periodt π
π¦ 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