Man page - sdl_enterappmaincallbacks(3)
Packages contains this manual
Manual
SDL_EnterAppMainCallbacks
NAMEHEADER FILE
SYNOPSIS
DESCRIPTION
FUNCTION PARAMETERS
RETURN VALUE
THREAD SAFETY
AVAILABILITY
NAME
SDL_EnterAppMainCallbacks - An entry point for SDLās use in SDL_MAIN_USE_CALLBACKS .
HEADER FILE
Defined in SDL3/SDL_main.h
SYNOPSIS
#include "SDL3/SDL.h"
int SDL_EnterAppMainCallbacks(int argc, char *argv[], SDL_AppInit_func appinit, SDL_AppIterate_func appiter, SDL_AppEvent_func appevent, SDL_AppQuit_func appquit);
DESCRIPTION
Generally, you should not call this function directly. This only exists to hand off work into SDL as soon as possible, where it has a lot more control and functionality available, and make the inline code in
SDL_main .h as small as possible.
Not all platforms use this, itās actual use is hidden in a magic header-only library, and you should not call this directly unless you _really_ know what youāre doing.
FUNCTION PARAMETERS
|
argc |
standard Unix main argc. |
|||
|
argv |
standard Unix main argv. |
appinit
the applicationās
SDL_AppInit
function.
appiter
the applicationās
SDL_AppIterate
function.
appevent
the applicationās
SDL_AppEvent
function.
appquit
the applicationās
SDL_AppQuit
function.
RETURN VALUE
Returns standard Unix main return value.
THREAD SAFETY
It is not safe to call this anywhere except as the only function call in
SDL_main .
AVAILABILITY
This function is available since SDL 3.2.0.