Fix: removed the t_img texture and left the t_texture instead.

This commit is contained in:
B.Goulard 2024-12-17 17:28:51 +01:00
parent eda859f200
commit 7f1091b721
9 changed files with 35 additions and 40 deletions

View file

@ -6,7 +6,7 @@
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/30 16:30:26 by rparodi #+# #+# */
/* Updated: 2024/12/16 15:35:29 by bgoulard ### ########.fr */
/* Updated: 2024/12/17 17:18:05 by bgoulard ### ########.fr */
/* */
/* ************************************************************************** */
@ -30,6 +30,7 @@ t_texture *get_texture(int side, t_ipoint step, t_info *data);
void draw_(int *ti, double *td, t_ipoint step, t_info *data);
// utils
void sv_errno(t_info *inf, int err_code);
void draw_floor(t_info *data);
int render_frame(t_info *data);
void my_mlx_pixel_put(t_info *data, int x, int y, int color);

View file

@ -6,7 +6,7 @@
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/28 13:53:54 by bgoulard #+# #+# */
/* Updated: 2024/12/17 16:52:53 by bgoulard ### ########.fr */
/* Updated: 2024/12/17 17:21:45 by bgoulard ### ########.fr */
/* */
/* ************************************************************************** */
@ -93,8 +93,7 @@ typedef struct s_map
t_ipoint size;
t_tile *map;
char **fraw;
t_img *texture[4];
t_texture texture_[4];
t_texture texture[4];
t_color bg_colors[2];
} t_map;