sdlEnterAppMainCallbacks function
- int argc,
- Pointer<
Pointer< argv,Int8> > - Pointer<
NativeFunction< appinit,SdlAppInitFunc> > - Pointer<
NativeFunction< appiter,SdlAppIterateFunc> > - Pointer<
NativeFunction< appevent,SdlAppEventFunc> > - Pointer<
NativeFunction< appquit,SdlAppQuitFunc> >
An entry point for SDL's use in SDL_MAIN_USE_CALLBACKS.
Generally, you should not call this function directly. This only exists to hand off work into SDL as soon as possible, where it has a lot more control and functionality available, and make the inline code in SDL_main.h as small as possible.
Not all platforms use this, it's actual use is hidden in a magic header-only library, and you should not call this directly unless you really know what you're doing.
\param argc standard Unix main argc. \param argv standard Unix main argv. \param appinit the application's SDL_AppInit function. \param appiter the application's SDL_AppIterate function. \param appevent the application's SDL_AppEvent function. \param appquit the application's SDL_AppQuit function. \returns standard Unix main return value.
\threadsafety It is not safe to call this anywhere except as the only function call in SDL_main.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC int SDLCALL SDL_EnterAppMainCallbacks(int argc, char *argv[], SDL_AppInit_func appinit, SDL_AppIterate_func appiter, SDL_AppEvent_func appevent, SDL_AppQuit_func appquit)
Implementation
int sdlEnterAppMainCallbacks(
int argc,
Pointer<Pointer<Int8>> argv,
Pointer<NativeFunction<SdlAppInitFunc>> appinit,
Pointer<NativeFunction<SdlAppIterateFunc>> appiter,
Pointer<NativeFunction<SdlAppEventFunc>> appevent,
Pointer<NativeFunction<SdlAppQuitFunc>> appquit) {
final sdlEnterAppMainCallbacksLookupFunction = libSdl3.lookupFunction<
Int32 Function(
Int32 argc,
Pointer<Pointer<Int8>> argv,
Pointer<NativeFunction<SdlAppInitFunc>> appinit,
Pointer<NativeFunction<SdlAppIterateFunc>> appiter,
Pointer<NativeFunction<SdlAppEventFunc>> appevent,
Pointer<NativeFunction<SdlAppQuitFunc>> appquit),
int Function(
int argc,
Pointer<Pointer<Int8>> argv,
Pointer<NativeFunction<SdlAppInitFunc>> appinit,
Pointer<NativeFunction<SdlAppIterateFunc>> appiter,
Pointer<NativeFunction<SdlAppEventFunc>> appevent,
Pointer<NativeFunction<SdlAppQuitFunc>> appquit)>(
'SDL_EnterAppMainCallbacks');
return sdlEnterAppMainCallbacksLookupFunction(
argc, argv, appinit, appiter, appevent, appquit);
}