diff options
-rw-r--r-- | inc/cub3d.h | 2 | ||||
-rw-r--r-- | src/ft_draw_textures.c (renamed from ft_draw_textures.c) | 11 |
2 files changed, 11 insertions, 2 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h index 386f658..d4ca854 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -32,7 +32,7 @@ int8_t ft_init_cub3d(t_cub **clist); t_map *ft_init_map(void); void ft_hooks_and_loops(t_win *wl, t_cub *cl); int ft_key_event(int keycode, t_cub *clist); -int ft_click_close(int keycode, t_cub *clist); +int ft_click_close(uint64_t keycode, t_cub *clist); int ft_exit(uint8_t exit_code, t_cub *clist); void ft_draw_square(int a, int b, int rgb, t_cub *clist); void ft_parse_map(const char *map_path, t_cub *clist); diff --git a/ft_draw_textures.c b/src/ft_draw_textures.c index 5002daa..36cc832 100644 --- a/ft_draw_textures.c +++ b/src/ft_draw_textures.c @@ -13,4 +13,13 @@ #include <cub3d.h> #include <stdint.h> -void ft_draw_wall(on est al) +void ft_draw_wall(t_cub *clist, int x, int draw_start, int draw_end) +{ + clist->img.ptr[/*calcul a la con*/x]; + /* + * faire calcul wola + * + * + * + */ +} |