SDL_ShowWindow(3)

✨ NAME ✨

okay so bestie, welcome to SDL_ShowWindow(3) from the SDL3 FUNCTIONS manual. This function is literally SDL_ShowWindow β€” and it does exactly what it says on the tin: show a window. No cap. It's giving "make the window appear" and honestly? Iconic. πŸ’…πŸͺŸβœ¨

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <SDL3/SDL_video.h>

bool SDL_ShowWindow(SDL_Window *window);

πŸŽ€ FUNCTION PARAMETERS πŸŽ€

  • window β€” the window to show. Hand over the window you want on screen, bestie. πŸͺŸβœ¨

πŸ’– RETURN VALUE πŸ’–

Returns true on success or false on failure; call SDL_GetError() for more information. So if it comes back false, that's your cue to go get the error tea from SDL_GetError(). 😭

πŸ”’ THREAD SAFETY πŸ”’

This function should only be called on the main thread. Like, main thread only, fr fr β€” don't be sneaking it in from a side thread. πŸ§΅πŸ™…β€β™€οΈ

πŸ¦‹ AVAILABILITY πŸ¦‹

This function is available since SDL 3.2.0. Periodt. πŸ—“οΈβœ¨

πŸ‘€ SEE ALSO πŸ‘€


Source: Simple Directmedia Layer Β· Version: SDL 3.4.18 Β· Date: the footer didn't have one, so I'm not inventing it, bestie. This was SDL_ShowWindow(3), signing off. πŸ’–βœ¨πŸ«Ά

πŸ“¦ where this page comes from