42_cube3D/map/map.h

23 lines
327 B
C
Raw Normal View History

2023-05-03 07:09:06 -04:00
#ifndef MAP_H
# define MAP_H
# include<sys/types.h>
// img: 0=Nord, 1=WEST, 2=SOUTH, 3=EAST;
typedef struct s_map
{
char **map;
2023-05-05 10:34:22 -04:00
void *img_path[4];
2023-05-03 07:09:06 -04:00
long long color_bot;
long long color_top;
2023-05-05 07:51:11 -04:00
size_t size_x;
size_t size_y;
2023-05-05 07:35:52 -04:00
double ply_x;
double ply_y;
char direction;
2023-05-03 07:09:06 -04:00
} t_map;
2023-05-05 10:34:22 -04:00
void map_freer(t_map *map);
2023-05-03 07:09:06 -04:00
#endif