direct header includes, remove redundant ones

This commit is contained in:
veclavtalica 2024-10-22 10:39:40 +03:00
parent 8aecc2bd06
commit eff2d9c5e1
11 changed files with 9 additions and 13 deletions

View File

@ -1,6 +1,7 @@
#include "twn_game_object_c.h" #include "twn_game_object_c.h"
#include "twn_engine_context_c.h" #include "twn_engine_context_c.h"
#include "twn_util_c.h" #include "twn_util_c.h"
#include "twn_util.h"
#include <x-watcher.h> #include <x-watcher.h>
#include <SDL2/SDL.h> #include <SDL2/SDL.h>

View File

@ -1,6 +1,7 @@
#include "twn_game_object_c.h" #include "twn_game_object_c.h"
#include "twn_engine_context_c.h" #include "twn_engine_context_c.h"
#include "twn_util_c.h" #include "twn_util_c.h"
#include "twn_util.h"
#include <errhandlingapi.h> #include <errhandlingapi.h>
#include <libloaderapi.h> #include <libloaderapi.h>

View File

@ -3,7 +3,6 @@
#include "twn_textures_c.h" #include "twn_textures_c.h"
#include "twn_text_c.h" #include "twn_text_c.h"
#include "twn_util.h"
#include "twn_option.h" #include "twn_option.h"
#include <SDL2/SDL.h> #include <SDL2/SDL.h>

View File

@ -1,6 +1,5 @@
#include "twn_draw.h" #include "twn_draw.h"
#include "twn_draw_c.h" #include "twn_draw_c.h"
#include "twn_util.h"
#include <stdbool.h> #include <stdbool.h>

View File

@ -1,6 +1,4 @@
#include "twn_draw_c.h" #include "twn_draw_c.h"
#include "twn_engine_context_c.h"
#include "twn_util_c.h"
#ifdef EMSCRIPTEN #ifdef EMSCRIPTEN
#include <GLES2/gl2.h> #include <GLES2/gl2.h>

View File

@ -1,10 +1,6 @@
#include "twn_draw.h" #include "twn_draw.h"
#include "twn_draw_c.h" #include "twn_draw_c.h"
#include "twn_engine_context_c.h" #include "twn_engine_context_c.h"
#include "twn_util.h"
#include "twn_util_c.h"
#include "twn_textures_c.h"
#include "twn_option.h"
#include <stb_ds.h> #include <stb_ds.h>

View File

@ -2,6 +2,7 @@
#include "twn_engine_context_c.h" #include "twn_engine_context_c.h"
#include "twn_util.h" #include "twn_util.h"
#include "twn_util_c.h" #include "twn_util_c.h"
#include "twn_audio.h"
#include <SDL2/SDL.h> #include <SDL2/SDL.h>
#include <stb_ds.h> #include <stb_ds.h>

View File

@ -1,8 +1,6 @@
#ifndef TWN_AUDIO_C_H #ifndef TWN_AUDIO_C_H
#define TWN_AUDIO_C_H #define TWN_AUDIO_C_H
#include "twn_audio.h"
#include <SDL2/SDL_audio.h> #include <SDL2/SDL_audio.h>
#define STB_VORBIS_HEADER_ONLY #define STB_VORBIS_HEADER_ONLY

View File

@ -1,7 +1,9 @@
#include "twn_input_c.h" #include "twn_input_c.h"
#include "twn_util.h" #include "twn_util.h"
#include "twn_util_c.h"
#include "twn_control.h" #include "twn_control.h"
#include "twn_engine_context_c.h" #include "twn_engine_context_c.h"
#include "twn_input.h"
#include <SDL2/SDL.h> #include <SDL2/SDL.h>
#include <stb_ds.h> #include <stb_ds.h>

View File

@ -1,11 +1,12 @@
#ifndef TWN_INPUT_C_H #ifndef TWN_INPUT_C_H
#define TWN_INPUT_C_H #define TWN_INPUT_C_H
#include "twn_input.h" #include "twn_types.h"
#include "twn_vec.h"
#include <SDL2/SDL.h> #include <SDL2/SDL.h>
#include <stdbool.h>
#define KEYBIND_SLOTS_DEFAULT 3 #define KEYBIND_SLOTS_DEFAULT 3

View File

@ -1,7 +1,7 @@
#ifndef TWN_TEXTURES_C_H #ifndef TWN_TEXTURES_C_H
#define TWN_TEXTURES_C_H #define TWN_TEXTURES_C_H
#include "twn_util.h" #include "twn_types.h"
#include "twn_texture_modes.h" #include "twn_texture_modes.h"
#include "rendering/twn_gpu_texture_c.h" #include "rendering/twn_gpu_texture_c.h"