sdlUiKitRunApp function

int sdlUiKitRunApp(
  1. int argc,
  2. Pointer<Pointer<Int8>> argv,
  3. Pointer<NativeFunction<SdlMainFunc>> mainFunction
)

Initializes and launches an SDL application.

\param argc The argc parameter from the application's main() function \param argv The argv parameter from the application's main() function \param mainFunction The SDL app's C-style main(), an SDL_main_func \return the return value from mainFunction

\since This function is available since SDL 2.0.10.

extern DECLSPEC int SDLCALL SDL_UIKitRunApp(int argc, char *argv[], SDL_main_func mainFunction)

Implementation

int sdlUiKitRunApp(int argc, Pointer<Pointer<Int8>> argv,
    Pointer<NativeFunction<SdlMainFunc>> mainFunction) {
  final sdlUiKitRunAppLookupFunction = libSdl2.lookupFunction<
          Int32 Function(Int32 argc, Pointer<Pointer<Int8>> argv,
              Pointer<NativeFunction<SdlMainFunc>> mainFunction),
          int Function(int argc, Pointer<Pointer<Int8>> argv,
              Pointer<NativeFunction<SdlMainFunc>> mainFunction)>(
      'SDL_UIKitRunApp');
  return sdlUiKitRunAppLookupFunction(argc, argv, mainFunction);
}