logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_AppInit_func - Function pointer typedef for SDL_AppInit .

Availability

       This datatype is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                            SDL_AppInit_func(3type)

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

appstate
              a place where the app can optionally store a pointer for future use.

       argc   the standard ANSI C main's argc; number of elements in argv .

       argv   the standard ANSI C main's argv; array of command line arguments.

Header File

       Defined in SDL3/SDL_init.h

Name

       SDL_AppInit_func - Function pointer typedef for 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.

Synopsis

#include"SDL3/SDL.h"typedefSDL_AppResult(SDLCALL*SDL_AppInit_func)(void**appstate,intargc,char*argv[]);

See Also