aboutsummaryrefslogtreecommitdiff
path: root/timing/timing.h
diff options
context:
space:
mode:
authorjacopograndi <jacopo.grandi@outlook.it>2022-01-04 13:35:02 +0100
committerjacopograndi <jacopo.grandi@outlook.it>2022-01-04 13:35:02 +0100
commitbb16c32bde58cba70e4877aa2d3ebd04332eb575 (patch)
treede3d82cca043c26cbaa64837a3b2c18efc6ddb64 /timing/timing.h
parent411d2f6d6a6e5370d33f0f54b2f2de7147a9d977 (diff)
linux compile and imgs
Diffstat (limited to 'timing/timing.h')
-rw-r--r--timing/timing.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/timing/timing.h b/timing/timing.h
index f420582..f036abc 100644
--- a/timing/timing.h
+++ b/timing/timing.h
@@ -1,24 +1,24 @@
-#ifndef TIMING_H
-#define TIMING_H
-
-#define SDL_MAIN_HANDLED
-#include <SDL2/SDL.h>
-
-class timing_sdl {
- public:
- timing_sdl(double fps);
- void process();
- bool check_process();
- bool check_render();
-
- private:
- double frame_time;
- double last_time;
- double frame_counter;
- double tot_time;
- double unprocessed_time;
- int frames;
- bool render;
-};
-
+#ifndef TIMING_H
+#define TIMING_H
+
+#define SDL_MAIN_HANDLED
+#include <SDL2/SDL.h>
+
+class timing_sdl {
+ public:
+ timing_sdl(double fps);
+ void process();
+ bool check_process();
+ bool check_render();
+
+ private:
+ double frame_time;
+ double last_time;
+ double frame_counter;
+ double tot_time;
+ double unprocessed_time;
+ int frames;
+ bool render;
+};
+
#endif \ No newline at end of file