Function pointer typedef for SDL_AppQuit.
Defined in <SDL3/SDL_init.h>
typedef void (SDLCALL *SDL_AppQuit_func)(void *appstate, SDL_AppResult result);
appstate | an optional pointer, provided by the app in SDL_AppInit. |
result | the result code that terminated the app (success or failure). |
These are used by SDL_EnterAppMainCallbacks. This mechanism operates behind the scenes for apps using the optional main callbacks. Apps that want to use this should just implement SDL_AppEvent directly.
This datatype is available since SDL 3.1.3.