From b6736a2dc2cead76bd6a619b52d2d18ac3d4029d Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 24 Mar 2020 20:06:05 +0100 Subject: Get normed --- src/ft_wall_cast.c | 70 +----------------------------------------------------- 1 file changed, 1 insertion(+), 69 deletions(-) (limited to 'src/ft_wall_cast.c') diff --git a/src/ft_wall_cast.c b/src/ft_wall_cast.c index 8e74434..7610df6 100644 --- a/src/ft_wall_cast.c +++ b/src/ft_wall_cast.c @@ -14,7 +14,7 @@ #include #include -static void +void ft_draw_verline(t_cub *cl, int32_t x, int32_t y, int32_t y2) { int32_t d; @@ -35,74 +35,6 @@ static void } } -static void -*ft_wall_one(void *vargp) -{ - t_cub *cl; - uint16_t i; - - cl = (t_cub *)vargp; - i = 0; - while (i < cl->wlist.x_size / 4) - { - ft_draw_verline(cl, i, cl->rlist.wall_t_tab[i], cl->rlist.wall_bz[i]); - i++; - } - pthread_exit(0x0); - return (0x0); -} - -static void -*ft_wall_two(void *vargp) -{ - t_cub *cl; - uint16_t i; - - cl = (t_cub *)vargp; - i = cl->wlist.x_size / 4; - while (i < 2 * (cl->wlist.x_size / 4)) - { - ft_draw_verline(cl, i, cl->rlist.wall_t_tab[i], cl->rlist.wall_bz[i]); - i++; - } - pthread_exit(0x0); - return (0x0); -} - -static void -*ft_wall_three(void *vargp) -{ - t_cub *cl; - uint16_t i; - - cl = (t_cub *)vargp; - i = 2 * (cl->wlist.x_size / 4); - while (i < 3 * (cl->wlist.x_size / 4)) - { - ft_draw_verline(cl, i, cl->rlist.wall_t_tab[i], cl->rlist.wall_bz[i]); - i++; - } - pthread_exit(0x0); - return (0x0); -} - -static void -*ft_wall_four(void *vargp) -{ - t_cub *cl; - uint16_t i; - - cl = (t_cub *)vargp; - i = 3 * (cl->wlist.x_size / 4); - while (i < 4 * (cl->wlist.x_size / 4)) - { - ft_draw_verline(cl, i, cl->rlist.wall_t_tab[i], cl->rlist.wall_bz[i]); - i++; - } - pthread_exit(0x0); - return (0x0); -} - void *ft_wall_cast(void *vargp) { -- cgit v1.2.3