diff options
| author | DrNuget <drnuget@outlook.com> | 2026-01-10 06:41:13 +0200 |
|---|---|---|
| committer | DrNuget <drnuget@outlook.com> | 2026-01-10 06:41:13 +0200 |
| commit | 3a3b64bedc47a0795358c6be7062160f52f2fc3b (patch) | |
| tree | eeaebee9ad6bab1a91e46ed8e7f682ac404e16e2 /src/engine/M_game.h | |
| parent | 7f3aa1cff755d21d972457b05c140cf465b9fa19 (diff) | |
| download | mnm-3a3b64bedc47a0795358c6be7062160f52f2fc3b.tar.gz | |
added FPS camera movement and probably some other changes
Diffstat (limited to 'src/engine/M_game.h')
| -rw-r--r-- | src/engine/M_game.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/M_game.h b/src/engine/M_game.h index a0b7942..4c884d9 100644 --- a/src/engine/M_game.h +++ b/src/engine/M_game.h @@ -3,6 +3,7 @@ #include <SDL3/SDL_init.h> #include <SDL3/SDL_video.h> #include <SDL3/SDL_timer.h> +#include <SDL3/SDL_mouse.h> #include <glad/gl.h> @@ -11,6 +12,7 @@ #include "M_player.h" //#include "M_object.h" #include "M_block.h" +#include "M_cube.h" typedef struct { SDL_Window *window; @@ -23,11 +25,9 @@ typedef struct { 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); +int M_handleEvents(M_Game *game); |
