diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-01-28 16:01:25 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-01-28 16:01:25 +0100 |
commit | 1b3cf4e3ce43e556ef47c669511620815b747221 (patch) | |
tree | be53e93d6fd39578ce71e82502c1289aac98e819 /inc | |
parent | Everything is terrible but this might work (diff) | |
download | 42-cub3d-1b3cf4e3ce43e556ef47c669511620815b747221.tar.gz 42-cub3d-1b3cf4e3ce43e556ef47c669511620815b747221.tar.bz2 42-cub3d-1b3cf4e3ce43e556ef47c669511620815b747221.tar.xz 42-cub3d-1b3cf4e3ce43e556ef47c669511620815b747221.tar.zst 42-cub3d-1b3cf4e3ce43e556ef47c669511620815b747221.zip |
I understood
Diffstat (limited to '')
-rw-r--r-- | inc/cub3d.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h index 5a56df1..3a18cd8 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -1,7 +1,7 @@ #ifndef CUB3D_H #define CUB3D_H -#include <inttypes.h> +#include <stdint.h> #include <stddef.h> #ifndef FT_W_KEY @@ -24,8 +24,9 @@ typedef struct s_win { void *wlx; void *winptr; - int x_size; - int y_size; + uint8_t inited; + uint16_t x_size; + uint16_t y_size; } t_win; typedef struct s_cub @@ -50,7 +51,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); int ft_select_get(char **words, t_cub *clist); -int ft_get_res(int fd, t_cub *clist); +int ft_get_res(char **words, t_cub *clist); int ft_get_tex(int fd, t_cub *clist); int ft_get_sprite_tex(int fd, t_cub *clist); int ft_get_colors(int fd, t_cub *clist); @@ -58,8 +59,8 @@ int ft_get_map(int fd, t_cub *clist); void ft_check_empty_line(int fd, unsigned int linum, t_cub *clist); -void ft_free_words(char **words, char *line); -int ft_map_error(unsigned int linum, t_cub *clist); +void 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_print_list(t_cub *clist); |