Files
cub3d/includes/cub3d.h
Angel Ortigosa Perez a4c1881930 Libft and ftprintf added
2025-11-15 10:31:47 +01:00

37 lines
530 B
C

#ifndef CUB3D_H
# define CUB3D_H
# include <unistd.h>
# include <stdlib.h>
# include <math.h>
# include "../lib/mlx/include/MLX42/MLX42.h"
# include "../lib/libft/libft.h"
# include "../lib/ft_printf/ft_printf.h"
# define S_W 800
# define S_H 600
# define FOV 60
# define TILE_SIZE 50
typedef struct s_player
{
int player_x;
int player_y;
double angel;
float fov;
int rot;
int l_r;
int u_d;
} t_player;
typedef struct s_mlx
{
mlx_image_t *img;
mlx_t *mlx_ptr;
t_player *player;
char **map;
} t_mlx;
#endif