#ifndef COMMON_H #define COMMON_H #ifdef __cplusplus extern "C" { #endif #include #include #include #include #define SDL_MAIN_HANDLED #include typedef struct { uint32_t width; uint32_t height; } App_Config; typedef struct { SDL_Window* window; bool quit; } App_State; extern App_Config app_config; extern App_State app_state;; int app_init_sdl(); int app_update_sdl(); int app_dispose_sdl(); int app_init_quickjs(int argc, char** argv); int app_update_quickjs(); int app_dispose_quickjs(); int app_init_bgfx(); int app_update_bgfx(); int app_dispose_bgfx(); // utiles char* app_read_file(const char* filename, size_t* out_size); #ifdef __cplusplus } #endif #endif