SDL_MainThreadCallback

Callback run on the main thread.

Header File

Defined in <SDL3/SDL_init.h>

Syntax

typedef void (SDLCALL *SDL_MainThreadCallback)(void *userdata);

Function Parameters

userdata an app-controlled pointer that is passed to the callback.

Version

This datatype is available since SDL 3.2.0.

See Also


CategoryAPI, CategoryAPIDatatype, CategoryInit