mirror of
https://codeberg.org/ACME-Corporation/cub3d.git
synced 2025-12-06 09:58:09 +01:00
54 lines
1.4 KiB
C
54 lines
1.4 KiB
C
|
|
/* ************************************************************************** */
|
||
|
|
/* */
|
||
|
|
/* ::: :::::::: */
|
||
|
|
/* structs.h :+: :+: :+: */
|
||
|
|
/* +:+ +:+ +:+ */
|
||
|
|
/* By: tchampio <tchampio@student.42lehavre.fr> +#+ +:+ +#+ */
|
||
|
|
/* +#+#+#+#+#+ +#+ */
|
||
|
|
/* Created: 2025/06/21 19:46:20 by tchampio #+# #+# */
|
||
|
|
/* Updated: 2025/06/21 19:48:20 by tchampio ### ########.fr */
|
||
|
|
/* */
|
||
|
|
/* ************************************************************************** */
|
||
|
|
|
||
|
|
#ifndef STRUCTS_H
|
||
|
|
# define STRUCTS_H
|
||
|
|
|
||
|
|
typedef struct s_mlx_data
|
||
|
|
{
|
||
|
|
void *img;
|
||
|
|
char *addr;
|
||
|
|
int bits_per_pixel;
|
||
|
|
int line_length;
|
||
|
|
int endian;
|
||
|
|
} t_mlx_data;
|
||
|
|
|
||
|
|
typedef enum e_direction
|
||
|
|
{
|
||
|
|
NORTH,
|
||
|
|
SOUTH,
|
||
|
|
EAST,
|
||
|
|
WEST
|
||
|
|
} t_direction;
|
||
|
|
|
||
|
|
typedef struct s_mapdata
|
||
|
|
{
|
||
|
|
char *filename;
|
||
|
|
char *no_texture;
|
||
|
|
char *so_texture;
|
||
|
|
char *we_texture;
|
||
|
|
char *ea_texture;
|
||
|
|
int f_color;
|
||
|
|
int c_color;
|
||
|
|
int mapheight;
|
||
|
|
char **map;
|
||
|
|
char **mapflood;
|
||
|
|
int skipped_lines;
|
||
|
|
bool isvalid;
|
||
|
|
int startx;
|
||
|
|
int starty;
|
||
|
|
t_direction startdirection;
|
||
|
|
char error[1024];
|
||
|
|
} t_mapdata;
|
||
|
|
|
||
|
|
#endif
|