add init textures
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
// -------------------------------
|
||||
|
||||
@@ -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;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user