SDL_MainThreadCallback.3type - Man Page

Callback run on the main thread.

Header File

Defined in SDL3/SDL_init.h

Synopsis

#include "SDL3/SDL.h"

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

Function Parameters

userdata

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

Availability

This datatype is available since SDL 3.2.0.

See Also

·(3), SDL_RunOnMainThread(3)

Info

SDL 3.2.2 Simple Directmedia Layer SDL3 DATATYPES