diff options
Diffstat (limited to 'inc/cub3d.h')
-rw-r--r-- | inc/cub3d.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h index 6dcd67b..b9256e9 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -42,6 +42,22 @@ typedef struct s_win int16_t y_size; } t_win; +typedef struct s_img +{ + void *img; + char *ptr; + int bpp; + int sizeline; + int endian; +} t_img; + +typedef struct s_rgb +{ + uint8_t r; + uint8_t g; + uint8_t b; +} t_rgb; + /* ** view_side: ** 1: North @@ -74,6 +90,8 @@ typedef struct s_cub uint8_t isspawn; struct s_win *wlist; struct s_player *plist; + struct s_img img; + struct s_rgb rgb; } t_cub; t_win *ft_init_win(void); @@ -103,5 +121,6 @@ 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); +int ft_rgb_to_hex(t_rgb rgb); # endif |