lignes fonctionnent un tout petit peu

This commit is contained in:
hugogogo
2021-07-21 20:28:25 +02:00
parent e35ff369ea
commit 4fcea738ce
4 changed files with 85 additions and 34 deletions

View File

@@ -6,6 +6,36 @@
# include <unistd.h> // for sleep()
# include <math.h> // for M_PI
typedef struct s_fdf
{
void *mlx_ptr;
void *win_ptr;
void *img_ptr;
char *img_addr;
int **map;
int offset;
int margin;
int altitude;
int win_size_x;
int win_size_y;
int img_size_x;
int img_size_y;
int map_size_x;
int map_size_y;
int map_width;
int map_height;
int rot_x;
int rot_y;
double rad_x;
double rad_y;
int mov_x;
int mov_y;
int max_z;
int img_bpp;
int img_sizel;
int img_endian;
} t_fdf;
# define ESCAPE 65307
# define UP 65362
# define DOWN 65364
@@ -38,34 +68,4 @@
# define Y 121
# define Z 122
typedef struct s_fdf
{
void *mlx_ptr;
void *win_ptr;
void *img_ptr;
char *img_addr;
int **map;
int offset;
int margin;
int altitude;
int win_size_x;
int win_size_y;
int img_size_x;
int img_size_y;
int map_size_x;
int map_size_y;
int map_width;
int map_height;
int rot_x;
int rot_y;
double rad_x;
double rad_y;
int mov_x;
int mov_y;
int max_z;
int img_bpp;
int img_sizel;
int img_endian;
} t_fdf;
#endif