-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextract_data_from_context.c
33 lines (31 loc) · 1.39 KB
/
extract_data_from_context.c
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* extract_data_from_context.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: vkatason <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/03 23:31:34 by vkatason #+# #+# */
/* Updated: 2024/05/30 18:17:02 by vkatason ### ########.fr */
/* */
/* ************************************************************************** */
#include "cub3D.h"
/**
* @brief Function to extract basic data
* from the data->context. It combines
* functions to extract path, color, check
* textures, check map and get player position.
*
* @param data Pointer to the main data struct
*/
void ft_extract_data(t_data *data)
{
ft_extract_path(data);
ft_extract_color(data);
ft_check_textures(data);
ft_check_map(data);
ft_copy_map(data);
ft_get_player_position(data);
ft_flood_fill(data, data->mpx, data->mpy);
ft_check_flood_fill(data);
}