diff options
author | Rudy Bousset <rbousset@z2r5p6.le-101.fr> | 2020-02-14 18:47:19 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p6.le-101.fr> | 2020-02-14 18:47:19 +0100 |
commit | 8e6080e73661cc8747b21b1153e4336796575cf7 (patch) | |
tree | 2eaec487a73f9df1a69627cff23c42746f1b296e /inc/cub3d.h | |
parent | Added turn around keys (diff) | |
download | 42-cub3d-8e6080e73661cc8747b21b1153e4336796575cf7.tar.gz 42-cub3d-8e6080e73661cc8747b21b1153e4336796575cf7.tar.bz2 42-cub3d-8e6080e73661cc8747b21b1153e4336796575cf7.tar.xz 42-cub3d-8e6080e73661cc8747b21b1153e4336796575cf7.tar.zst 42-cub3d-8e6080e73661cc8747b21b1153e4336796575cf7.zip |
Norme is bav
Diffstat (limited to '')
-rw-r--r-- | inc/cub3d.h | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h index 60c9bb1..699dc6a 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -1,14 +1,13 @@ /* ************************************************************************** */ -/* LE - / */ -/* / */ -/* cub3d.h .:: .:/ . .:: */ -/* +:+:+ +: +: +:+:+ */ -/* By: rbousset <marvin@le-101.fr> +:+ +: +: +:+ */ -/* #+# #+ #+ #+# */ -/* Created: 2020/02/02 17:19:43 by rbousset #+# ## ## #+# */ -/* Updated: 2020/02/02 17:19:43 by rbousset ### #+. /#+ ###.fr */ -/* / */ -/* / */ +/* */ +/* ::: :::::::: */ +/* cub3d.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/14 17:20:11 by rbousset #+# #+# */ +/* Updated: 2020/02/14 17:20:12 by rbousset ### ########lyon.fr */ +/* */ /* ************************************************************************** */ # ifndef CUB3D_H @@ -46,7 +45,6 @@ # define FT_SCR_SIZE "1920x1080" # endif - /* ** ret vals: ** 1: no argv[1] @@ -83,19 +81,24 @@ 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_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); 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); +int8_t ft_draw_verline(t_cub *cl, int32_t x, + int32_t y1, int32_t y2); void ft_castray(t_cub *cl); void ft_draw_map(char **map, t_cub *clist); -int8_t ft_f1_key(t_cub *clist); -int8_t ft_left_key(t_cub *clist); -int8_t ft_right_key(t_cub *clist); +int ft_w_key(t_cub *clist); +int ft_a_key(t_cub *clist); +int ft_s_key(t_cub *clist); +int ft_d_key(t_cub *clist); +int ft_f1_key(t_cub *clist); +int ft_left_key(t_cub *clist); +int ft_right_key(t_cub *clist); # endif |