affichage pas ouf car une seule image et erreur dans la size de l'image

This commit is contained in:
hugogogo
2021-07-19 00:35:12 +02:00
parent ab39114203
commit 17352e6e50
5 changed files with 296 additions and 32 deletions

View File

@@ -4,6 +4,7 @@
# include "../libft/includes/libft.h"
# include <mlx.h>
# include <unistd.h> // for sleep()
# include <math.h> // for M_PI
# define ESCAPE 65307
# define UP 65362
@@ -11,28 +12,30 @@
# define LEFT 65361
# define RIGHT 65363
typedef struct s_fdf
typedef struct s_fdf
{
void *mlx_ptr;
void *win_ptr;
void *img_ptr;
char *img_addr;
int **map;
int offset;
int margin;
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_length;
int map_height;
int rot_x;
int rot_y;
int img_bpp;
int img_sizel;
int img_endian;
} t_fdf;
void *mlx_ptr;
void *win_ptr;
void *img_ptr;
char *img_addr;
int **map;
int offset;
int margin;
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_length;
int map_height;
int rot_x;
int rot_y;
double rad_x;
double rad_y;
int img_bpp;
int img_sizel;
int img_endian;
} t_fdf;
#endif