SDL_WasInit(3)
π SDL_WasInit(3) π
okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, and today's main character is SDL_WasInit β she's literally just here to tell you what's already up and running β¨
πΈ NAME πΈ
SDL_WasInit β get a mask of the specified subsystems which are currently initialized π«Ά
(yeah she's nosy, but in a helpful way. she checks who's already at the party π)
π¦ SYNOPSIS π¦
#include <SDL3/SDL_init.h>
SDL_InitFlags SDL_WasInit(SDL_InitFlags flags);
π FUNCTION PARAMETERS π
flagsβ any of the flags used bySDL_Init(); seeSDL_Initfor details π like, whatever flags you'd throw atSDL_Init, she'll accept them here too. same energy, same set, no cap.
β¨ RETURN VALUE β¨
Returns a mask of all initialized subsystems if flags is 0 π otherwise it returns the initialization status of the specified subsystems π
so basically: pass 0 and she spills the tea on everything that's initialized, pass actual flags and she only reports on the ones you asked about. lowkey iconic behavior.
π₯ THREAD SAFETY π₯
This function is not thread safe. π
fr fr, do not come for her from multiple threads at once, she is not built for that chaos. keep it single-threaded or wrap it up yourself, bestie.
π AVAILABILITY π
This function is available since SDL 3.2.0 π so if you're on anything older, she's not there yet, sorry bestie π
π SEE ALSO π
go read those too, they're the siblings and they ate π
Simple Directmedia Layer π¦ this whole thing is living in SDL 3.4.18, and the original page signed off as SDL_WasInit(3) β so yeah, that's the vibe, mwah πβ¨ no cap, 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