/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* cub3d_data.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: kcolin +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/07/17 14:59:37 by kcolin #+# #+# */ /* Updated: 2025/09/10 15:58:56 by tchampio ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef CUB3D_DATA_H # define CUB3D_DATA_H # include "map/mapdata.h" # include "draw/img_data.h" # include "sprites/sprite.h" # include "utils/keypresses.h" # include "consts.h" # include "player/player.h" // the 4 static sprites are some of the perks and the mystery box typedef struct s_cub3d_data { void *mlx; void *mlx_win; t_img_data *no_texture; t_img_data *so_texture; t_img_data *we_texture; t_img_data *ea_texture; t_img_data *barricades_texture[7]; t_img_data *img_data; t_img_data *point_figures[10]; t_img_data *perk_logos[3]; t_img_data *tally_marks[5]; t_img_data *round_figures[10]; t_mapdata *map; t_player player; t_keypresses keypresses; int *screen_matrix; int delta; int last_tick; t_sprite **sprite_list; int sprite_counter; double zbuffer[WIDTH]; int sprite_order[MAX_SPRITES]; double sprite_distances[MAX_SPRITES]; int round; } t_cub3d_data; #endif // CUB3D_DATA_H