sdlWinRtRunApp function
int
sdlWinRtRunApp(
- Pointer<
NativeFunction< mainFunction,SdlMainFunc> > - Pointer<
NativeType> reserved
Initialize and launch an SDL/WinRT 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.0.3.
extern DECLSPEC int SDLCALL SDL_WinRTRunApp(SDL_main_func mainFunction, void * reserved)
Implementation
int sdlWinRtRunApp(Pointer<NativeFunction<SdlMainFunc>> mainFunction,
Pointer<NativeType> reserved) {
final sdlWinRtRunAppLookupFunction = libSdl2.lookupFunction<
Int32 Function(Pointer<NativeFunction<SdlMainFunc>> mainFunction,
Pointer<NativeType> reserved),
int Function(Pointer<NativeFunction<SdlMainFunc>> mainFunction,
Pointer<NativeType> reserved)>('SDL_WinRTRunApp');
return sdlWinRtRunAppLookupFunction(mainFunction, reserved);
}