add init textures

This commit is contained in:
hugogogo
2022-05-02 16:11:54 +02:00
parent a6fd2df6d5
commit 628a0c0cad
9 changed files with 113 additions and 75 deletions

View File

@@ -14,8 +14,10 @@ int shut_down();
// -------------------------------
// init_struct.c
t_game *init_struct(void);
// init_game.c
void init_game(t_game *game);
void init_plr(t_plr *plr, t_map *map);
// init_textures.c
void init_txtr(t_txt *txt, void *mlx_ptr);
// -------------------------------

View File

@@ -77,6 +77,7 @@ typedef struct s_img
int szl;
int ndn;
int height;
int width;
} t_img;
/*
@@ -91,6 +92,10 @@ typedef struct s_txt
char *txt_west;
int rgb_floor;
int rgb_ceiling;
t_img img_n;
t_img img_s;
t_img img_e;
t_img img_w;
} t_txt;
/*