sdlWasInit function

int sdlWasInit(
  1. int flags
)

Get a mask of the specified subsystems which are currently initialized.

\param flags any of the flags used by SDL_Init(); see SDL_Init for details. \returns a mask of all initialized subsystems if flags is 0, otherwise it returns the initialization status of the specified subsystems.

The return value does not include SDL_INIT_NOPARACHUTE.

\since This function is available since SDL 2.0.0.

\sa SDL_Init \sa SDL_InitSubSystem

extern DECLSPEC Uint32 SDLCALL SDL_WasInit(Uint32 flags)

Implementation

int sdlWasInit(int flags) {
  final sdlWasInitLookupFunction = libSdl2.lookupFunction<
      Uint32 Function(Uint32 flags), int Function(int flags)>('SDL_WasInit');
  return sdlWasInitLookupFunction(flags);
}