#pragma once #include #include #include #include //#include "M_types.h" #include "M_render.h" #include "M_player.h" //#include "M_object.h" #include "M_block.h" typedef struct { SDL_Window *window; SDL_GLContext gpu; int window_width, window_height; int running; M_RenderInfo render_info; M_BlockAtlas block_atlas; M_Player player; SDL_Thread *event_handler; } M_Game; int M_initGame(M_Game *game, const char *window_title); int M_killGame(M_Game *game); int SDLCALL M_handleEvents(void* arg);