aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_wall_cast.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-24 20:06:05 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-24 20:06:05 +0100
commitb6736a2dc2cead76bd6a619b52d2d18ac3d4029d (patch)
treeee89b6ac356cb37a7906ff157c1f1908823b9d2b /src/ft_wall_cast.c
parentNorme and merge (diff)
download42-cub3d-b6736a2dc2cead76bd6a619b52d2d18ac3d4029d.tar.gz
42-cub3d-b6736a2dc2cead76bd6a619b52d2d18ac3d4029d.tar.bz2
42-cub3d-b6736a2dc2cead76bd6a619b52d2d18ac3d4029d.tar.xz
42-cub3d-b6736a2dc2cead76bd6a619b52d2d18ac3d4029d.tar.zst
42-cub3d-b6736a2dc2cead76bd6a619b52d2d18ac3d4029d.zip
Get normed
Diffstat (limited to 'src/ft_wall_cast.c')
-rw-r--r--src/ft_wall_cast.c70
1 files changed, 1 insertions, 69 deletions
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 <stdint.h>
#include <pthread.h>
-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)
{