SDL_EnterAppMainCallbacks(3)

SDL_EnterAppMainCallbacks3

An entry point for sdl's use in sdl_main_use_callbacks .

Usage

#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);

Header file

Defined in SDL3/SDL_main.h

Overview

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.

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