t_turelist to t_texture_list
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/11/25 19:47:02 by aortigos #+# #+# */
|
||||
/* Updated: 2025/12/11 19:47:53 by aortigos ### ########.fr */
|
||||
/* Updated: 2025/12/11 19:57:55 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -55,7 +55,7 @@ typedef struct s_turelist
|
||||
char *name;
|
||||
char *value;
|
||||
struct s_turelist *next;
|
||||
} t_turelist;
|
||||
} t_texture_list;
|
||||
|
||||
typedef struct s_player
|
||||
{
|
||||
@@ -95,7 +95,7 @@ typedef struct s_data
|
||||
char **sq_map;
|
||||
char **cc;
|
||||
char **ff;
|
||||
t_turelist *t_list;
|
||||
t_texture_list *t_list;
|
||||
} t_data;
|
||||
|
||||
typedef struct s_mlx
|
||||
@@ -106,7 +106,7 @@ typedef struct s_mlx
|
||||
t_data *dt; // the data structure
|
||||
t_player *ply; // the player structure
|
||||
t_tex *tex;
|
||||
t_turelist *l_ture;
|
||||
t_texture_list *l_ture;
|
||||
} t_mlx;
|
||||
|
||||
|
||||
@@ -122,13 +122,13 @@ int parsing(int ac, char **av, t_data *data);
|
||||
void freetl(char *ture, char *line, int fd);
|
||||
void free_map(t_data *data);
|
||||
void free_m(t_mlx *mlx);
|
||||
void freelist(t_turelist **txture);
|
||||
void freelist(t_texture_list **txture);
|
||||
|
||||
// lst_textures.c
|
||||
int get_index(char *line, int i);
|
||||
t_turelist *new_texture(char *line);
|
||||
void lst_back_ture(t_turelist **l_ture, t_turelist *new);
|
||||
int lst_ture(t_data *m, t_turelist **l_ture);
|
||||
t_texture_list *new_texture(char *line);
|
||||
void lst_back_ture(t_texture_list **l_ture, t_texture_list *new);
|
||||
int lst_ture(t_data *m, t_texture_list **l_ture);
|
||||
|
||||
// read_map.c
|
||||
int is_surrounded(char *line);
|
||||
@@ -146,8 +146,8 @@ int surrounded_by_one(char **map);
|
||||
|
||||
// textures.c
|
||||
int check_color_values(char **rgb);
|
||||
void ft_process_rgb_color(t_turelist *tmp, t_data *m);
|
||||
int color_ture(t_data *m, t_turelist *l_ture);
|
||||
void ft_process_rgb_color(t_texture_list *tmp, t_data *m);
|
||||
int color_ture(t_data *m, t_texture_list *l_ture);
|
||||
int check_color_textures(char *line);
|
||||
int check_count_textures(t_data *m, int count);
|
||||
|
||||
@@ -199,8 +199,8 @@ int unit_circle(float angle, char c);
|
||||
|
||||
// execution.c
|
||||
void render_frame(void *mlx_ptr);
|
||||
int check_load_ture(t_turelist *list);
|
||||
int load_texture(t_tex *tex, t_turelist *l_ture);
|
||||
int check_load_ture(t_texture_list *list);
|
||||
int load_texture(t_tex *tex, t_texture_list *l_ture);
|
||||
void get_angle(t_mlx *mlx);
|
||||
int execution(t_data *dt);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user