From f02b76dbd09a0e0789a478c9f541c53bde95ef09 Mon Sep 17 00:00:00 2001 From: util1 Date: Sat, 20 Jul 2019 16:12:33 +0200 Subject: [PATCH] ajout prototype get_fps --- src/FxEngine/FxEngine.c | 7 +++++-- src/FxEngine/FxEngine.h | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/FxEngine/FxEngine.c b/src/FxEngine/FxEngine.c index 0807d16..c801777 100644 --- a/src/FxEngine/FxEngine.c +++ b/src/FxEngine/FxEngine.c @@ -3,10 +3,13 @@ #include -static int time_since_last_frame=0; +static int time_last_frame=0; +static int frame_interval=0; + void FE_new_frame() { + FE_move(); // Not implemented yet ! FE_zbuffer_clear(); // Not implemented yet ! @@ -18,4 +21,4 @@ static void FE_move() // call at each frame { // TODO with math functions, not implemented yet ! // TODO insert physical engine -} \ No newline at end of file +} diff --git a/src/FxEngine/FxEngine.h b/src/FxEngine/FxEngine.h index 3fb77e8..6a487c6 100644 --- a/src/FxEngine/FxEngine.h +++ b/src/FxEngine/FxEngine.h @@ -9,7 +9,7 @@ extern float FE_dh,FE_dv,FE_roulis; extern FE_Position FE_user={0,0,0}; void FE_new_frame(); // calls move function -int FE_get_fps(); +// int FE_get_fps();