table of contents
other versions
- trixie 3.2.10+ds-1
 - testing 3.2.26+ds-1
 - unstable 3.2.26+ds-2
 - experimental 3.3.2+git20251103~dc5b136+ds-1
 
| SDL_AppInit_func(3type) | SDL3 DATATYPES | SDL_AppInit_func(3type) | 
NAME¶
SDL_AppInit_func - Function pointer typedef for SDL_AppInit .
HEADER FILE¶
Defined in SDL3/SDL_init.h
SYNOPSIS¶
#include "SDL3/SDL.h"
typedef SDL_AppResult (SDLCALL *SDL_AppInit_func)(void **appstate, int argc, char *argv[]);
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_AppInit
  
   directly.
FUNCTION PARAMETERS¶
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.10 | Simple Directmedia Layer |