From bb16c32bde58cba70e4877aa2d3ebd04332eb575 Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Tue, 4 Jan 2022 13:35:02 +0100 Subject: linux compile and imgs --- timing/timing.h | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'timing/timing.h') 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 - -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 + +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 -- cgit v1.2.3-54-g00ecf