part: implement mlx_xpm_file_to_image()

This commit is contained in:
Zy 2024-10-12 19:42:46 +02:00
parent 8649e86eaa
commit 9264c47494
4 changed files with 318 additions and 20 deletions

View file

@ -75,7 +75,7 @@ t_image mlx_xpm_to_image(t_mlx mlx_ptr, const char **xpm_data,
// ??? TODO docs xpm_file_to_image
// width & height CAN be null (check please :3)
t_image _mlx_xpm_file_to_image(t_mlx mlx_ptr, char *filename,
t_image mlx_xpm_file_to_image(t_mlx mlx_ptr, const char *filename,
int *width, int *height);
/// @brief Destroy an image to avoid leaks.