aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-04 15:21:10 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-04 15:21:10 +0100
commit5db7c4f7d445373d92c41a7cc9aa667e223e5507 (patch)
tree1dff7a6452ad593cf0c7f92d7db35580fb619d94 /inc
parentRemoved map print (diff)
download42-cub3d-5db7c4f7d445373d92c41a7cc9aa667e223e5507.tar.gz
42-cub3d-5db7c4f7d445373d92c41a7cc9aa667e223e5507.tar.bz2
42-cub3d-5db7c4f7d445373d92c41a7cc9aa667e223e5507.tar.xz
42-cub3d-5db7c4f7d445373d92c41a7cc9aa667e223e5507.tar.zst
42-cub3d-5db7c4f7d445373d92c41a7cc9aa667e223e5507.zip
tryna save
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d.h3
-rw-r--r--inc/cub3d_defines.h6
2 files changed, 6 insertions, 3 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h
index e640a14..b1712c1 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -120,7 +120,8 @@ void ft_set_minimap_scale(t_cub *clist);
void *ft_music_thread(void *vargp);
void ft_detect(t_cub *cl);
void ft_castray(t_cub *cl);
-void ft_save_to_bmp(void);
+int8_t ft_save_to_bmp(void *img, t_cub *cl);
+int ft_error(const char *errmsg, t_cub *clist);
uint8_t ft_free_words(char **words);
int8_t ft_warp_level(t_cub *cl);
int ft_exit(uint8_t exit_code, t_cub *clist);
diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h
index 66303ab..ed57f3e 100644
--- a/inc/cub3d_defines.h
+++ b/inc/cub3d_defines.h
@@ -22,9 +22,10 @@ enum
FT_RET_BAD_ARGV,
FT_RET_FAILED_STRUCTS,
FT_RET_FAILED_MLX,
- FT_RET_MAP_ERROR,
+ FT_RET_MAP_ERR,
FT_RET_NO_MAP,
- FT_RET_READ_ERROR
+ FT_RET_READ_ERR,
+ FT_RET_BMP_ERR
} retvals;
/*
@@ -140,6 +141,7 @@ enum
# define FT_ERR_RD_NL_TEX "could not find next level texture file"
# define FT_ERR_RD_NL_MAP "could not find next level map file"
# define FT_ERR_RD_MUSIC "could not find music file"
+# define FT_ERR_WR_BMP "could not export to bmp"
/*
** ====== MISSING ERROR MSG ======