SDL_InitSubSystem(3)
π SDL_InitSubSystem(3) π
okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, we're doing SDL_InitSubSystem today and it's literally so chill β¨
πΈ NAME πΈ
SDL_InitSubSystem β the compatibility function that initializes the SDL library π«Ά
β¨ SYNOPSIS β¨
#include <SDL3/SDL_init.h>
bool SDL_InitSubSystem(SDL_InitFlags flags);
π DESCRIPTION π
so the tea is: this function and SDL_Init() are interchangeable. that's it. that's the whole vibe. they do the same thing, no cap π
π FUNCTION PARAMETERS π
flagsβ any of the flags thatSDL_Init()uses; go peek atSDL_Initfor the details, iykyk π«
π¦ RETURN VALUE π¦
returns true when it slays, or false when it does not slay π β call SDL_GetError() for more info if things went sideways.
π THREAD SAFETY π
this one is main thread only, bestie. like, only call it on the main thread. no side-quest threads, periodt π
β AVAILABILITY β
this function has been available since SDL 3.2.0 π
π SEE ALSO π
and that's the whole page fr fr π brought to you by Simple Directmedia Layer, version SDL 3.4.18 β mwah, go forth and initialize responsibly πβ¨π
π¦ 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