diff options
author | zlago | 2025-05-08 21:56:43 +0200 |
---|---|---|
committer | zlago | 2025-05-08 21:56:43 +0200 |
commit | 6af605d10d4d7e2bdea79b8d69d0d48704ef77f8 (patch) | |
tree | 751bec92ec20ef638a8c7c571951cb2a732ced05 /src/main.h | |
parent | 67c27b93788fa429570da22a48f98291cd402e49 (diff) |
include more specific headers than SDL.h
improves compilation times, since so many things only need SDL_render.h
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.h b/src/main.h index ecd8250..2766a84 100644 --- a/src/main.h +++ b/src/main.h @@ -1,6 +1,7 @@ #pragma once -#include <SDL2/SDL.h> +#include <SDL2/SDL_video.h> +#include <SDL2/SDL_render.h> #include "entity.h" extern SDL_Window *window; extern SDL_Renderer *renderer; |