aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2020-02-17 18:52:58 +0100
committersalaaad2 <arthurdurant263@gmail.com>2020-02-17 18:52:58 +0100
commit84b6ca845a07421b10b527f3c18a49eabd8fb2f9 (patch)
treec136d58b09353c8efcad74a256f5f7db1c949c0a /inc
parentadd shadows and beginning of wall coordinate hit detection (diff)
download42-cub3d-84b6ca845a07421b10b527f3c18a49eabd8fb2f9.tar.gz
42-cub3d-84b6ca845a07421b10b527f3c18a49eabd8fb2f9.tar.bz2
42-cub3d-84b6ca845a07421b10b527f3c18a49eabd8fb2f9.tar.xz
42-cub3d-84b6ca845a07421b10b527f3c18a49eabd8fb2f9.tar.zst
42-cub3d-84b6ca845a07421b10b527f3c18a49eabd8fb2f9.zip
have correct width and hit zone, supposedly not much left
Diffstat (limited to '')
-rw-r--r--inc/cub3d_structs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index 38472a6..00f85d7 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -36,8 +36,6 @@ typedef struct s_img
int endian;
int img_w;
int img_h;
- int tex_x;
- int tex_y;
} t_img;
typedef struct s_rgb
@@ -85,6 +83,8 @@ typedef struct s_ray
size_t sqy;
uint8_t hit;
double wall_hit_x;
+ int tex_x;
+ int tex_y;
} t_ray;
typedef struct s_map