aboutsummaryrefslogtreecommitdiffstats
path: root/inc/cub3d.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/cub3d.h')
-rw-r--r--inc/cub3d.h13
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);