game view, but wrong :p

This commit is contained in:
hugogogo
2022-04-24 21:28:50 +02:00
parent c886118bd6
commit c52f04d9c8
7 changed files with 76 additions and 45 deletions

View File

@@ -35,7 +35,9 @@ typedef struct s_rcast
t_vec screen_dist;
t_vec screen_size;
t_vec ray;
int screen_def;
t_vec wall;
int screen_width;
int screen_height;
int cell;
int cell_x;
int cell_y;
@@ -53,7 +55,6 @@ typedef struct s_rcast
int ray_step_y;
int is_x;
int ray_nb;
int wall_height;
double ratio;
} t_rcast;
@@ -73,8 +74,9 @@ typedef struct s_img
void *ptr;
char *data;
int bpp;
int sizel;
int endian;
int szl;
int ndn;
int height;
} t_img;
/*