![]() |
tgrekov-fdf
HIVE fdf May 2024
|
Definition in file main.c.
#include <fcntl.h>#include <stdio.h>#include <libft.h>#include <ft_printf.h>#include "fdf/map.h"#include "utils/utils.h"Go to the source code of this file.
Functions | |
| t_map | read_map (int fd) |
Initialize map from an fdf map file pointed to by fd. | |
| int | fdf (t_map map) |
| Initialize mlx, run map projection and scaling, execute mlx, and cleanup. | |
| static int | open_map (char *filename) |
| Validate filename and open fdf map file. | |
| int | main (int argc, char **argv) |
| int fdf | ( | t_map | map | ) |
Initialize mlx, run map projection and scaling, execute mlx, and cleanup.
| map |
| int | Exit status, 0 on success |
Definition at line 131 of file fdf_mlx.c.
References fdf_mlx(), ft_printf(), s_loop_data::map, and project_map().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
| argc | |
| argv |
| int |
Definition at line 59 of file main.c.
References arr_free(), fdf(), open_map(), s_map::point, and read_map().
|
static |
Validate filename and open fdf map file.
| filename |
| int |
Definition at line 36 of file main.c.
References ft_printf(), ft_strlen(), and ft_strncmp().
| t_map read_map | ( | int | fd | ) |
Initialize map from an fdf map file pointed to by fd.
| [in] | fd |
| t_map |
Definition at line 147 of file read_map.c.
References arr_len(), s_list::content, err(), fill_points(), ft_calloc(), ft_lstclear(), ft_lstsize(), s_map::height, lst_arr_free(), s_map::point, split_rows(), and s_map::width.