Hello world
This commit is contained in:
35
includes/cub3d.h
Normal file
35
includes/cub3d.h
Normal file
@@ -0,0 +1,35 @@
|
||||
|
||||
#ifndef CUB3D_H
|
||||
|
||||
# define CUB3D_H
|
||||
|
||||
# include <unistd.h>
|
||||
# include <stdlib.h>
|
||||
# include <math.h>
|
||||
# include "../lib/mlx/include/MLX42/MLX42.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
|
||||
Reference in New Issue
Block a user