aboutsummaryrefslogtreecommitdiffstats
path: root/inc/cub3d_structs.h
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-02-19 16:57:39 +0100
committerRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-02-19 16:57:39 +0100
commit94b688c234660708edacf5d49df0e8bd3243cd6a (patch)
tree00debcda04429d9814de1789f08245355ec4e502 /inc/cub3d_structs.h
parentTweaks (diff)
parentyes :^) ! (diff)
download42-cub3d-94b688c234660708edacf5d49df0e8bd3243cd6a.tar.gz
42-cub3d-94b688c234660708edacf5d49df0e8bd3243cd6a.tar.bz2
42-cub3d-94b688c234660708edacf5d49df0e8bd3243cd6a.tar.xz
42-cub3d-94b688c234660708edacf5d49df0e8bd3243cd6a.tar.zst
42-cub3d-94b688c234660708edacf5d49df0e8bd3243cd6a.zip
Merge branch 'textures'
Diffstat (limited to 'inc/cub3d_structs.h')
-rw-r--r--inc/cub3d_structs.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index 908b007..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,7 @@ 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;
typedef struct s_map