sdlInitSubSystem function

int sdlInitSubSystem(
  1. int flags
)

Compatibility function to initialize the SDL library.

In SDL2, this function and SDL_Init() are interchangeable.

\param flags any of the flags used by SDL_Init(); see SDL_Init for details. \returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.0.

\sa SDL_Init \sa SDL_Quit \sa SDL_QuitSubSystem

extern DECLSPEC int SDLCALL SDL_InitSubSystem(Uint32 flags)

Implementation

int sdlInitSubSystem(int flags) {
  final sdlInitSubSystemLookupFunction = libSdl2.lookupFunction<
      Int32 Function(Uint32 flags),
      int Function(int flags)>('SDL_InitSubSystem');
  return sdlInitSubSystemLookupFunction(flags);
}