2023-04-26 06:55:14 -04:00
|
|
|
/* ************************************************************************** */
|
|
|
|
/* */
|
|
|
|
/* ::: :::::::: */
|
|
|
|
/* cube3D.h :+: :+: :+: */
|
|
|
|
/* +:+ +:+ +:+ */
|
|
|
|
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
|
|
|
/* +#+#+#+#+#+ +#+ */
|
|
|
|
/* Created: 2023/04/26 12:34:04 by erey-bet #+# #+# */
|
2023-04-26 09:45:21 -04:00
|
|
|
/* Updated: 2023/04/26 15:20:47 by erey-bet ### ########.fr */
|
2023-04-26 06:55:14 -04:00
|
|
|
/* */
|
|
|
|
/* ************************************************************************** */
|
|
|
|
|
|
|
|
#ifndef CUBE3D_H
|
|
|
|
# define CUBE3D_H
|
|
|
|
|
2023-04-26 08:19:25 -04:00
|
|
|
# include <sys/types.h>
|
|
|
|
# include "MLX42/include/MLX42/MLX42.h"
|
2023-04-26 08:58:24 -04:00
|
|
|
# include <X11/keysym.h>
|
|
|
|
# include <X11/X.h>
|
|
|
|
# include <stdlib.h>
|
2023-04-26 09:45:21 -04:00
|
|
|
# include <stdio.h>
|
2023-04-26 06:55:14 -04:00
|
|
|
|
|
|
|
// img: 0=Nord, 1=WEST, 2=SUD, 3=EAST;
|
|
|
|
|
|
|
|
typedef struct s_map
|
|
|
|
{
|
|
|
|
char **map;
|
|
|
|
size_t size_x;
|
|
|
|
size_t size_y;
|
|
|
|
void *img[4];
|
|
|
|
long color_bot;
|
|
|
|
long color_top;
|
|
|
|
} t_map;
|
|
|
|
|
|
|
|
t_map *map_parsing(char *path);
|
|
|
|
int start_game(t_map *map);
|
|
|
|
|
|
|
|
#endif
|