cub3d/includes/maputils.h

36 lines
643 B
C
Raw Normal View History

2025-06-04 19:16:59 +02:00
#ifndef MAPUTILS_H
# define MAPUTILS_H
# include <stdbool.h>
2025-06-04 21:50:33 +02:00
// TODO: mettre ca dans un autre fichier
# define RESET "\033[0m"
# define RED "\033[31m"
# define GREEN "\033[32m"
# define YELLOW "\033[33m"
# define BLUE "\033[34m"
# define MAGENTA "\033[35m"
# define CYAN "\033[36m"
# define BOLD "\033[1m"
2025-06-04 19:16:59 +02:00
typedef struct s_mapdata
{
char *filename;
2025-06-04 21:50:33 +02:00
char *NO_texture;
char *SO_texture;
char *WE_texture;
char *EA_texture;
2025-06-16 17:03:32 +02:00
int f_color;
int c_color;
2025-06-18 22:19:25 +02:00
int mapheight;
2025-06-16 17:03:32 +02:00
char **map;
char **mapflood;
2025-06-20 12:07:03 +02:00
int skipped_lines;
2025-06-04 19:16:59 +02:00
bool isvalid;
char error[1024];
} t_mapdata;
bool check_cubfile(char *filename, t_mapdata *map);
#endif