SDL_AppQuit_func(3type)

SDL_AppQuit_func3type

Function pointer typedef for sdl_appquit .

Usage

#include "SDL3/SDL.h"

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

Header file

Defined in SDL3/SDL_init.h

Overview

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.

Function parameters

appstate

an optional pointer, provided by the app in SDL_AppInit .

result

the result code that terminated the app (success or failure).

Availability

This datatype is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.