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 πŸŽ€


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