sdlInitSubSystem function init
Compatibility function to initialize the SDL library.
This function and SDL_Init() are interchangeable.
\param flags any of the flags used by SDL_Init(); see SDL_Init for details. \returns true on success or false on failure; call SDL_GetError() for more information.
\since This function is available since SDL 3.2.0.
\sa SDL_Init \sa SDL_Quit \sa SDL_QuitSubSystem
extern SDL_DECLSPEC bool SDLCALL SDL_InitSubSystem(SDL_InitFlags flags)
Implementation
bool sdlInitSubSystem(int flags) {
final sdlInitSubSystemLookupFunction = _libSdl
.lookupFunction<Uint8 Function(Uint32 flags), int Function(int flags)>(
'SDL_InitSubSystem',
);
return sdlInitSubSystemLookupFunction(flags) == 1;
}