diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2020-02-15 15:10:46 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2020-02-15 15:10:46 +0100 |
commit | e141146776d9e0ac6bffe71c18dbe634ed1c2658 (patch) | |
tree | 6f38fe00f5f8e92cb1207c941a154647fad1f70a | |
parent | swap east and west, add texture init function (diff) | |
download | 42-cub3d-e141146776d9e0ac6bffe71c18dbe634ed1c2658.tar.gz 42-cub3d-e141146776d9e0ac6bffe71c18dbe634ed1c2658.tar.bz2 42-cub3d-e141146776d9e0ac6bffe71c18dbe634ed1c2658.tar.xz 42-cub3d-e141146776d9e0ac6bffe71c18dbe634ed1c2658.tar.zst 42-cub3d-e141146776d9e0ac6bffe71c18dbe634ed1c2658.zip |
small changez
-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 + * + * + * + */ +} |