diff options
Diffstat (limited to 'src/ft_drawsquare.c')
-rw-r--r-- | src/ft_drawsquare.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/src/ft_drawsquare.c b/src/ft_drawsquare.c deleted file mode 100644 index dd7cce7..0000000 --- a/src/ft_drawsquare.c +++ /dev/null @@ -1,37 +0,0 @@ -/* ************************************************************************** */ -/* LE - / */ -/* / */ -/* ft_drawsquare.c .:: .:/ . .:: */ -/* +:+:+ +: +: +:+:+ */ -/* By: rbousset <marvin@le-101.fr> +:+ +: +: +:+ */ -/* #+# #+ #+ #+# */ -/* Created: 2020/02/02 17:19:22 by rbousset #+# ## ## #+# */ -/* Updated: 2020/02/02 17:19:22 by rbousset ### #+. /#+ ###.fr */ -/* / */ -/* / */ -/* ************************************************************************** */ - -#include <cub3d.h> -#include <mlx.h> -#include <stdint.h> - -void - ft_drawsquare(int a, int b, int rgb, t_cub *clist) -{ - const uint16_t scale = clist->scale; - int x; - int y; - - x = a; - y = b; - while (x > a - scale) - { - while (y > b - scale) - { - *(int*)(clist->img.ptr + (x * 4 + (y * clist->img.sizeline))) = rgb; - y--; - } - y = b; - x--; - } -} |