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 that SDL_Init() uses; go peek at SDL_Init for 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