/* Código fuente creado por JailDesigner Empezado en Castalla el 01/07/2022. */ #define SDL_MAIN_USE_CALLBACKS 1 #include #include "core/system/director.hpp" SDL_AppResult SDL_AppInit(void** appstate, int /*argc*/, char* /*argv*/[]) { *appstate = new Director(); return SDL_APP_CONTINUE; } SDL_AppResult SDL_AppIterate(void* appstate) { return static_cast(appstate)->iterate(); } SDL_AppResult SDL_AppEvent(void* appstate, SDL_Event* event) { return static_cast(appstate)->handleEvent(*event); } void SDL_AppQuit(void* appstate, SDL_AppResult /*result*/) { delete static_cast(appstate); }