SDL Wiki
(This is the documentation for SDL3, which is the current stable version. SDL2 was the previous version!)

SDL_AppQuit_func

Function pointer typedef for SDL_AppQuit.

Header File

Defined in <SDL3/SDL_init.h>

Syntax

typedef void (SDLCALL *SDL_AppQuit_func)(void *appstate, SDL_AppResult result);

Function Parameters

appstate an optional pointer, provided by the app in SDL_AppInit.
result the result code that terminated the app (success or failure).

Remarks

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.

Version

This datatype is available since SDL 3.1.3.


CategoryAPI, CategoryAPIDatatype, CategoryInit


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.