aboutsummaryrefslogtreecommitdiffstats
path: root/inc/cub3d.h
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z3r8p1.le-101.fr>2020-02-13 19:22:15 +0100
committerRudy Bousset <rbousset@z3r8p1.le-101.fr>2020-02-13 19:22:15 +0100
commitfb98fd19ba9e27eb3a169a7599ce41fb0877b7a6 (patch)
tree2185933c9bde571819dfd480b48aa66459a30b2e /inc/cub3d.h
parentSolid map is better (diff)
download42-cub3d-fb98fd19ba9e27eb3a169a7599ce41fb0877b7a6.tar.gz
42-cub3d-fb98fd19ba9e27eb3a169a7599ce41fb0877b7a6.tar.bz2
42-cub3d-fb98fd19ba9e27eb3a169a7599ce41fb0877b7a6.tar.xz
42-cub3d-fb98fd19ba9e27eb3a169a7599ce41fb0877b7a6.tar.zst
42-cub3d-fb98fd19ba9e27eb3a169a7599ce41fb0877b7a6.zip
Better code structure
Diffstat (limited to '')
-rw-r--r--inc/cub3d.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h
index f0dbf61..81692e4 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -39,6 +39,9 @@
# ifndef FT_ESC_KEY
# define FT_ESC_KEY 53
# endif
+# ifndef FT_F1_KEY
+# define FT_F1_KEY 122
+# endif
# ifndef FT_SCR_SIZE
# define FT_SCR_SIZE "1920x1080"
# endif
@@ -59,7 +62,7 @@ void ft_hooks_and_loops(t_win *wl, t_cub *cl);
int ft_key_event(int keycode, t_cub *clist);
int ft_click_close(int keycode, t_cub *clist);
int ft_exit(uint8_t exit_code, t_cub *clist);
-void ft_drawsquare(int a, int b, int rgb, t_cub *clist);
+void ft_draw_square(int a, int b, int rgb, t_cub *clist);
void ft_parse_map(const char *map_path, t_cub *clist);
int8_t ft_select_get(char **words, t_cub *clist);
int8_t ft_get_screen_size(t_win *wlist);
@@ -79,10 +82,9 @@ int ft_check_missing(t_cub *clist);
int8_t ft_check_map_line(char *line, uint8_t l, t_cub *clist);
size_t ft_get_line_len(char *line);
int ft_missing_error(const char *err, t_cub *clist);
-uint8_t ft_free_words(char **words);
-int ft_map_error(t_cub *clist);
+uint8_t ft_free_words(char **words); int ft_map_error(t_cub *clist);
int ft_init_winlx(t_cub *clist);
-void ft_drawmap(t_cub *clist);
+void ft_draw_scene(t_cub *clist);
void ft_print_list(t_cub *clist);
uint32_t ft_rgb_to_hex(t_rgb rgb);
t_ray ft_init_s_ray(void);
@@ -90,5 +92,7 @@ void ft_detect(t_cub *cl);
int8_t ft_draw_verline(t_cub *cl, int32_t x, int32_t y1,
int32_t y2, int32_t color);
void ft_castray(t_cub *cl);
+void ft_draw_map(char **map, t_cub *clist);
+int8_t ft_f1_key(t_cub *clist);
# endif