From a25845a1e0c96111f42e96c9c87d33f0c42180bc Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Tue, 18 Feb 2020 16:18:09 +0100 Subject: hmmmmmmmmmmm --- inc/cub3d_structs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'inc') diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 908b007..e2d5100 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -85,6 +85,7 @@ typedef struct s_ray double wall_hit_x; int tex_x; int tex_y; + double step_tex_v; } t_ray; typedef struct s_map -- cgit v1.2.3 From f8cd383a3ed07be0fb3ad78ad25a0c053c53ae3d Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Tue, 18 Feb 2020 18:18:01 +0100 Subject: pas loin --- inc/cub3d.h | 1 + inc/cub3d_structs.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'inc') diff --git a/inc/cub3d.h b/inc/cub3d.h index 2362d07..d3e018e 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -78,5 +78,6 @@ int ft_key_release(int keycode, t_cub *clist); int8_t ft_check_ext(const char *filep, const char *ext); int32_t ft_convert_keycode(const int32_t tmp_code); int ft_key_loop(t_cub *cl); +void ft_draw_texture(t_cub *cl, int x, int y, int tex_y); # endif diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index e2d5100..18edfd8 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -36,6 +36,8 @@ typedef struct s_img int endian; int img_w; int img_h; + int tex_x; + int tex_y; } t_img; typedef struct s_rgb @@ -83,8 +85,6 @@ typedef struct s_ray size_t sqy; uint8_t hit; double wall_hit_x; - int tex_x; - int tex_y; double step_tex_v; } t_ray; -- cgit v1.2.3