sdlInitSubSystem function

bool sdlInitSubSystem(
  1. int flags
)

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.1.3.

\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 = libSdl3.lookupFunction<
      Uint8 Function(Uint32 flags),
      int Function(int flags)>('SDL_InitSubSystem');
  return sdlInitSubSystemLookupFunction(flags) == 1;
}