-
#define FF_ALLOC_EVENT (SDL_USEREVENT) #define FF_REFRESH_EVENT (SDL_USEREVENT + 1) #define FF_QUIT_EVENT (SDL_USEREVENT + 2) ... SDL_Event event; event.type = FF_QUIT_EVENT; event.user.data1 = pVideoState; SDL_PushEvent(&event); ...