table of contents
other versions
- testing 3.2.10+ds-1
- unstable 3.2.10+ds-1
- experimental 3.2.16+ds-1
SDL_AppIterate_func(3type) | SDL3 DATATYPES | SDL_AppIterate_func(3type) |
NAME¶
SDL_AppIterate_func - Function pointer typedef for SDL_AppIterate.
SYNOPSIS¶
#include <SDL3/SDL_init.h>
typedef SDL_AppResult (SDLCALL *SDL_AppIterate_func)(void *appstate);
DESCRIPTION¶
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_AppIterate directly.
FUNCTION PARAMETERS¶
- appstate
- an optional pointer, provided by the app in SDL_AppInit.
RETURN VALUE¶
Returns SDL_APP_FAILURE to terminate with an error, SDL_APP_SUCCESS to terminate with success, SDL_APP_CONTINUE to continue.
AVAILABILITY¶
This datatype is available since SDL 3.2.0.
SDL 3.2.16 | Simple Directmedia Layer |