aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_drawsquare.c
blob: df055fa271b4327aff39334e9c47d770713dfa60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <mlx.h>
#include <cub3d.h>

void
ft_drawsquare(t_win *wlist, int a, int b)
{
	int	x;
	int	y;

	x = a;
	y = b;
	while (x > a - 40)
	{
		while (y > b - 40)
		{
			mlx_pixel_put(wlist->wlx, wlist->winptr, x, y,
						  wlist->clist->f_color);
			y--;
		}
		y = b;
		x--;
	}
}