From f395f27532f6bacbbba23fcc7273a7d84f56606c Mon Sep 17 00:00:00 2001 From: Sara Date: Tue, 27 Jun 2023 08:16:31 +0200 Subject: [PATCH] moved entry to corelib --- src/corelib/entry.c | 9 +++++---- src/corelib/entry.h | 8 -------- src/game.c | 4 ++-- 3 files changed, 7 insertions(+), 14 deletions(-) diff --git a/src/corelib/entry.c b/src/corelib/entry.c index a1c857f..4489250 100644 --- a/src/corelib/entry.c +++ b/src/corelib/entry.c @@ -1,8 +1,9 @@ -#include "engine.h" +#include "entry.h" #include "world.h" -#include "corelib/assets.h" -#include "corelib/render.h" -#include "corelib/input.h" +#include "assets.h" +#include "render.h" +#include "input.h" + #include "time.h" static double _delta_time = 0; diff --git a/src/corelib/entry.h b/src/corelib/entry.h index 8667836..db8843a 100644 --- a/src/corelib/entry.h +++ b/src/corelib/entry.h @@ -1,10 +1,6 @@ #ifndef _engine_h #define _engine_h -#ifdef __cplusplus -extern "C" { -#endif - extern float delta_time(); extern void set_frame_interval(double frame_interval); extern void set_frame_rate_limit(int fps); @@ -16,8 +12,4 @@ extern void update_game(); extern void update_ui(); extern void game_exit(); -#ifdef __cplusplus -} -#endif - #endif /* _engine_h */ diff --git a/src/game.c b/src/game.c index 81b040f..37f1f8e 100644 --- a/src/game.c +++ b/src/game.c @@ -1,5 +1,5 @@ -#include "engine.h" -#include "world.h" +#include "corelib/entry.h" +#include "corelib/world.h" #include "corelib/input.h" #include "corelib/render.h" #include "corelib/assets.h"