sdlGdkRunApp function
Initialize and launch an SDL GDK application.
\param mainFunction the SDL app's C-style main(), an SDL_main_func \param reserved reserved for future use; should be NULL \returns 0 on success or -1 on failure; call SDL_GetError() to retrieve more information on the failure.
\since This function is available since SDL 2.24.0.
extern DECLSPEC int SDLCALL SDL_GDKRunApp(SDL_main_func mainFunction, void *reserved)
Implementation
int sdlGdkRunApp(Pointer<NativeFunction<SdlMainFunc>> mainFunction,
Pointer<NativeType> reserved) {
final sdlGdkRunAppLookupFunction = libSdl2.lookupFunction<
Int32 Function(Pointer<NativeFunction<SdlMainFunc>> mainFunction,
Pointer<NativeType> reserved),
int Function(Pointer<NativeFunction<SdlMainFunc>> mainFunction,
Pointer<NativeType> reserved)>('SDL_GDKRunApp');
return sdlGdkRunAppLookupFunction(mainFunction, reserved);
}