47 lines
1.5 KiB
C
47 lines
1.5 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* cub3d.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2025/11/25 19:47:02 by aortigos #+# #+# */
|
|
/* Updated: 2025/11/28 20:13:53 by aortigos ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef CUB3D_H
|
|
|
|
# define CUB3D_H
|
|
|
|
# include <unistd.h>
|
|
# include <stdlib.h>
|
|
# include <math.h>
|
|
# include "../lib/mlx/include/MLX42/MLX42.h"
|
|
# include "../lib/libft/libft.h"
|
|
# include "../lib/ft_printf/ft_printf.h"
|
|
# include "../lib/gnl/get_next_line.h"
|
|
|
|
# define S_W 800
|
|
# define S_H 600
|
|
# define FOV 60
|
|
# define PLAYER_SPEED 3
|
|
|
|
|
|
// Functions
|
|
|
|
// parsing.c
|
|
int read_map(char *av, t_data *map, int *count);
|
|
void get_x_y_player(t_data *data);
|
|
int check_extension_map(char *file);
|
|
int parsing(int ac, char **av, t_data *data);
|
|
|
|
//frees.c
|
|
void freetl(char *ture, char *line, int fd);
|
|
void free_map(t_data *data);
|
|
void free_m(t_mlx *mlx);
|
|
void freelist(t_turelist **txture);
|
|
|
|
|
|
|
|
#endif |