From 05ad2085ab6ce4ffb280b21ce3f321b2bd75aa9e Mon Sep 17 00:00:00 2001
From: JozanLeClerc <bousset.rudy@gmail.com>
Date: Tue, 17 Mar 2020 17:15:32 +0100
Subject: fps counter is bav

---
 inc/cub3d.h         | 2 ++
 inc/cub3d_structs.h | 1 +
 2 files changed, 3 insertions(+)

(limited to 'inc')

diff --git a/inc/cub3d.h b/inc/cub3d.h
index 5371305..61c4f01 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -17,6 +17,7 @@
 #include <cub3d_structs.h>
 #include <stddef.h>
 #include <stdint.h>
+#include <time.h>
 
 /*
 ** ====== STRUCTS ======
@@ -179,5 +180,6 @@ uint32_t		ft_rgb_to_hex(t_rgb rgb);
 t_bmp_rgb		ft_hex_to_rgb(uint32_t color);
 uint32_t		ft_darken(t_rgb rgb, t_cub *cl);
 void			ft_death_screen(t_cub *cl);
+void			ft_get_fps_count(clock_t delta_time, t_cub *cl);
 
 #	endif
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index 92d928d..9c61907 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -237,6 +237,7 @@ typedef struct			s_cub
 	char *const			*envp;
 	char				errmsg[64];
 	int32_t				key_input[5];
+	char				fps_count[9];
 	pthread_t			mtid;
 	int					(*key_ptr[6])(struct s_cub*);
 	int8_t				(*get_ptr[14])(char**, struct s_cub*);
-- 
cgit v1.2.3