words per minute
18
ATIR__
00:00
Speed
void ft_draw(t_sys *sys)
{
t_calc all;
all.x = 0;
ft_random(sys->random);
while (all.x < W) {
ft_init_draw(sys, &all);
ft_step_side(&all);
ft_cast_ray(sys, &all);
ft_calcs(sys, &all);
if (sys->texture >= 5 sys->texture <= 3) {
ft_line_image(all, sys, 0);
}
else if (sys->texture > 0) {
ft_line(all, all.draw_start, all.draw_end, sys);
}
++all.x;
}
ft_updown(sys, all);
ft_leftright(sys);
mlx_put_image_to_window(sys->mlx, sys->win, sys->img, 0, 0);
}