SDL_MainThreadCallback - Callback run on the main thread.
Contents
Availability
This datatype is available since SDL 3.2.0.
Function Parameters
userdata
an app-controlled pointer that is passed to the callback.
Header File
Defined in SDL3/SDL_init.h
Name
SDL_MainThreadCallback - Callback run on the main thread.
See Also
•(3), SDL_RunOnMainThread(3) Simple Directmedia Layer SDL 3.2.10 SDL_MainThreadCallback(3type)
Synopsis
#include"SDL3/SDL.h"typedefvoid(SDLCALL*SDL_MainThreadCallback)(void*userdata);
