diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-09 01:52:21 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-09 01:52:21 +0100 |
commit | c51419a68e38ed3a2eb28e740f72eaa436fbd106 (patch) | |
tree | 4cafa4ee075be34b32132c54fdda87c7ec996695 /src/ft_draw_verline.c | |
parent | Nigga my gun go off (diff) | |
download | 42-cub3d-c51419a68e38ed3a2eb28e740f72eaa436fbd106.tar.gz 42-cub3d-c51419a68e38ed3a2eb28e740f72eaa436fbd106.tar.bz2 42-cub3d-c51419a68e38ed3a2eb28e740f72eaa436fbd106.tar.xz 42-cub3d-c51419a68e38ed3a2eb28e740f72eaa436fbd106.tar.zst 42-cub3d-c51419a68e38ed3a2eb28e740f72eaa436fbd106.zip |
Boy
Diffstat (limited to '')
-rw-r--r-- | src/ft_draw_verline.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/ft_draw_verline.c b/src/ft_draw_verline.c index b6729de..7bfba8d 100644 --- a/src/ft_draw_verline.c +++ b/src/ft_draw_verline.c @@ -13,33 +13,6 @@ #include <cub3d.h> #include <stdint.h> -/* static void */ -/* ft_draw_floor(t_cub *cl, int32_t y, int32_t x) */ -/* { */ -/* while ((uint32_t)y < cl->wlist.y_size) */ -/* { */ -/* *(int*)(cl->img.ptr + */ -/* (x * 4 + (y * cl->img.sizeline))) */ -/* = ft_darken_floor(cl->f_rgb, y, cl); */ -/* y++; */ -/* } */ -/* } */ - -static void - ft_draw_ceil(t_cub *cl, int32_t y, int32_t x) -{ - int16_t i; - - i = 0; - while (i <= y) - { - *(int*)(cl->img.ptr + - (x * 4 + (i * cl->img.sizeline))) - = ft_darken_ceil(cl->c_rgb, i, cl); - i++; - } -} - int8_t ft_draw_verline(t_cub *cl, int32_t x, int32_t y, int32_t y2) { @@ -48,7 +21,6 @@ int8_t (y < 0) ? (y = 0) : 0; (y2 < 0) ? (y2 = 0) : 0; - ft_draw_ceil(cl, y, x); (cl->rlist.line_h <= 0) ? (cl->rlist.line_h = 1) : 0; while (y < y2) { @@ -59,6 +31,5 @@ int8_t ft_draw_texture(cl, x, y, tex_y); y++; } - /* ft_draw_floor(cl, y, x); */ return (0); } |