clean a little
This commit is contained in:
@@ -8,12 +8,12 @@ F 220 , 100, 30
|
|||||||
C 225 , 30 , 0
|
C 225 , 30 , 0
|
||||||
|
|
||||||
1111111111111111111111111111
|
1111111111111111111111111111
|
||||||
1000000000000000N11100000001
|
1000000000000000011100000001
|
||||||
1111000000000000100000110001
|
1111000000000000100000110001
|
||||||
1111001000000000000110000111
|
1111001000000000000110000111
|
||||||
1000000000000000010101000001
|
1000000000000000010101000001
|
||||||
1111110000000000000000001111
|
1111110000000000000000001111
|
||||||
1000000000000000000000000001
|
10000000000000000N0000000001
|
||||||
1000000000000000000000000001
|
1000000000000000000000000001
|
||||||
1000000000000000000000000001
|
1000000000000000000000000001
|
||||||
1000000000000000000000000001
|
1000000000000000000000000001
|
||||||
|
|||||||
@@ -20,28 +20,6 @@ static void draw_floor_ceiling(t_game *game, t_rcast *rcast, t_txt *txt)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
void draw_line(t_img *img, t_vec *vec, int color)
|
|
||||||
{
|
|
||||||
t_coord dist;
|
|
||||||
int i;
|
|
||||||
int j;
|
|
||||||
|
|
||||||
dist.x = (*vec).end.x - (*vec).start.x;
|
|
||||||
dist.y = (*vec).end.y - (*vec).start.y;
|
|
||||||
i = 0;
|
|
||||||
j = 0;
|
|
||||||
while (ft_abs(i) <= ft_abs(dist.x) && ft_abs(j) <= ft_abs(dist.y))
|
|
||||||
{
|
|
||||||
draw_pixel(img, (*vec).start.x + i, (*vec).start.y + j, color);
|
|
||||||
if (!ft_abs(dist.x) || ft_abs(j) < ft_abs(i * dist.y / dist.x))
|
|
||||||
j += ft_sign(dist.y);
|
|
||||||
else
|
|
||||||
i += ft_sign(dist.x);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
static int get_texture(t_img *img, int imgx, int j, int height)
|
static int get_texture(t_img *img, int imgx, int j, int height)
|
||||||
{
|
{
|
||||||
char *color;
|
char *color;
|
||||||
|
|||||||
Reference in New Issue
Block a user