diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-05 13:32:40 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-05 13:32:40 +0100 |
commit | d1097088999c538601158805cf77250d51513f98 (patch) | |
tree | 731f010c02189ff0df4530640a2d30e50160a80a /inc/cub3d.h | |
parent | Scale (diff) | |
download | 42-cub3d-d1097088999c538601158805cf77250d51513f98.tar.gz 42-cub3d-d1097088999c538601158805cf77250d51513f98.tar.bz2 42-cub3d-d1097088999c538601158805cf77250d51513f98.tar.xz 42-cub3d-d1097088999c538601158805cf77250d51513f98.tar.zst 42-cub3d-d1097088999c538601158805cf77250d51513f98.zip |
Don't mess with me boy
Diffstat (limited to 'inc/cub3d.h')
-rw-r--r-- | inc/cub3d.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h index f031c1c..cf35d92 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -32,14 +32,19 @@ # ifndef FT_ESC_KEY # define FT_ESC_KEY 53 # endif +# ifndef FT_SCR_SIZE +# define FT_SCR_SIZE 1980x1080 +# endif typedef struct s_win { void *wlx; void *winptr; uint8_t inited; - int16_t x_size; - int16_t y_size; + uint16_t x_max_size; + uint16_t y_max_size; + uint16_t x_size; + uint16_t y_size; } t_win; typedef struct s_img @@ -103,6 +108,7 @@ int ft_exit(uint8_t exit_code, t_cub *clist); void ft_drawsquare(int a, int b, int rgb, t_cub *clist); void ft_parse_map(const char *map_path, t_cub *clist); uint8_t ft_select_get(char **words, t_cub *clist); +int8_t ft_get_screen_size(t_win *wlist); int ft_get_res(char **words, t_cub *clist); int ft_get_tex_no(char **words, t_cub *clist); int ft_get_tex_so(char **words, t_cub *clist); @@ -118,7 +124,7 @@ 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); -void ft_free_words(char **words); +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); |