blob: 601a498dfde06aa259f41ee2f6044d9bda9fda82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
/* ************************************************************************** */
/* LE - / */
/* / */
/* ft_print_list.c .:: .:/ . .:: */
/* +:+:+ +: +: +:+:+ */
/* By: rbousset <marvin@le-101.fr> +:+ +: +: +:+ */
/* #+# #+ #+ #+# */
/* Created: 2020/02/02 17:19:32 by rbousset #+# ## ## #+# */
/* Updated: 2020/02/02 17:19:32 by rbousset ### #+. /#+ ###.fr */
/* / */
/* / */
/* ************************************************************************** */
#include <libft.h>
#include <cub3d.h>
void
ft_print_list(t_cub *clist)
{
size_t i;
ft_printf("x size ----- [%d]\n", clist->wlist->x_size);
ft_printf("y size ----- [%d]\n", clist->wlist->y_size);
ft_printf("North ------ [%s]\n", clist->no_tex_path);
ft_printf("South ------ [%s]\n", clist->so_tex_path);
ft_printf("West ------- [%s]\n", clist->we_tex_path);
ft_printf("East ------- [%s]\n", clist->ea_tex_path);
ft_printf("Sprite ----- [%s]\n", clist->sprite_path);
ft_printf("F color ---- [%d]\n", clist->f_color);
ft_printf("C color ---- [%d]\n", clist->c_color);
i = 0;
ft_printf("Map\n----\n");
while (clist->map[i])
{
ft_printf("%2zu -- [%s]\n", i + 1, clist->map[i]);
i++;
}
ft_printf("Map width -- [%zu]\n", clist->map_w);
ft_printf("----------------------\n");
}
|