improve gexit with init function and add basic mlx image gestion

This commit is contained in:
Hugo LAMY
2022-03-25 18:49:06 +01:00
parent 3a1036ccdc
commit 02b5d88ea5
45 changed files with 139 additions and 7042 deletions

View File

@@ -3,13 +3,22 @@
typedef struct s_game
{
// window
void *mlx_ptr;
void *win_ptr;
int plr_x;
int plr_y;
int win_size_x;
int win_size_y;
// player
int plr_x;
int plr_y;
// key hook
int k_hook[MAX_NB_KEY];
// image
void *img_ptr;
char *img_data;
int bpp;
int sizel;
int endian;
} t_game;
#endif