diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-04 16:32:31 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-04 16:32:31 +0100 |
commit | 7970e427f46a4d40f4b367c3d722a94352c533b3 (patch) | |
tree | 9268d062a3b9dbb5f81bdef72268c91e76e367d9 /src/ft_save_to_bmp.c | |
parent | Structs inited (diff) | |
download | 42-cub3d-7970e427f46a4d40f4b367c3d722a94352c533b3.tar.gz 42-cub3d-7970e427f46a4d40f4b367c3d722a94352c533b3.tar.bz2 42-cub3d-7970e427f46a4d40f4b367c3d722a94352c533b3.tar.xz 42-cub3d-7970e427f46a4d40f4b367c3d722a94352c533b3.tar.zst 42-cub3d-7970e427f46a4d40f4b367c3d722a94352c533b3.zip |
More tab
Diffstat (limited to 'src/ft_save_to_bmp.c')
-rw-r--r-- | src/ft_save_to_bmp.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ft_save_to_bmp.c b/src/ft_save_to_bmp.c index 4bfaace..cb3fa9b 100644 --- a/src/ft_save_to_bmp.c +++ b/src/ft_save_to_bmp.c @@ -31,8 +31,15 @@ static int8_t } int8_t - ft_save_to_bmp(t_bmp_file *bmp_file, void *img, t_cub *cl) + ft_save_to_bmp(void *img, t_cub *cl) { + t_bmp_file bmp_file; + t_bmp_info bmp_info; + t_bmp_colors bmp_colors; + + bmp_file = ft_init_bmp(); + bmp_info = ft_init_bmp_info(); + bmp_colors = ft_init_bmp_colors(); if (ft_convert_image_to_bmp(bmp_file, img, cl) < 0) return (-1); return (0); |