diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-18 17:51:13 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-18 17:51:13 +0100 |
commit | 9884607b90b18a5a1964a558733388a252f30a96 (patch) | |
tree | 3dab7213a656dcfd3e7d2be4e9c117b4409492a4 /src | |
parent | Removed bloat (diff) | |
download | 42-cub3d-9884607b90b18a5a1964a558733388a252f30a96.tar.gz 42-cub3d-9884607b90b18a5a1964a558733388a252f30a96.tar.bz2 42-cub3d-9884607b90b18a5a1964a558733388a252f30a96.tar.xz 42-cub3d-9884607b90b18a5a1964a558733388a252f30a96.tar.zst 42-cub3d-9884607b90b18a5a1964a558733388a252f30a96.zip |
Added a cool effect on map back
Diffstat (limited to 'src')
-rw-r--r-- | src/ft_draw_hud.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ft_draw_hud.c b/src/ft_draw_hud.c index fff75b0..36b987a 100644 --- a/src/ft_draw_hud.c +++ b/src/ft_draw_hud.c @@ -16,15 +16,18 @@ static void ft_put_image_back_to_ptr(uint16_t y, uint16_t x, t_cub *cl) { + uint32_t col; + + col = 0x00dfdfdf; *(cl->img.ptr + x * 4 + (cl->img.sizeline * y)) = (uint8_t)*(cl->tlist[16].ptr + cl->tlist[16].tex_x * 4 + 4 * - cl->tlist[16].img_w * cl->tlist[16].tex_y); + cl->tlist[16].img_w * cl->tlist[16].tex_y) & col; *(cl->img.ptr + x * 4 + (cl->img.sizeline * y) + 1) = (uint8_t)*(cl->tlist[16].ptr + cl->tlist[16].tex_x * 4 + 4 * - cl->tlist[16].img_w * cl->tlist[16].tex_y + 1); + cl->tlist[16].img_w * cl->tlist[16].tex_y + 1) & col; *(cl->img.ptr + x * 4 + (cl->img.sizeline * y) + 2) = (uint8_t)*(cl->tlist[16].ptr + cl->tlist[16].tex_x * 4 + 4 * - cl->tlist[16].img_w * cl->tlist[16].tex_y + 2); + cl->tlist[16].img_w * cl->tlist[16].tex_y + 2) & col; } static void |