aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d.h2
-rw-r--r--inc/cub3d_defines.h1
-rw-r--r--inc/cub3d_structs.h6
3 files changed, 7 insertions, 2 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h
index f255b00..7de1df7 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -77,6 +77,7 @@ void ft_sprite_height(t_cub *cl, t_sprite *sprite);
void ft_calc_sprite(t_cub *cl);
void ft_draw_sprite(t_cub *cl, t_sprite *sprite);
void ft_get_sprite_spawn(t_cub *cl);
+void ft_draw_skybox(t_cub *cl);
/*
** ====== PARSING ======
@@ -99,6 +100,7 @@ int8_t ft_get_c_color(char **words, t_cub *clist);
int8_t ft_get_c_tex(char **words, t_cub *clist);
int8_t ft_get_darkness(char **words, t_cub *clist);
int8_t ft_get_path_nl(char **words, t_cub *clist);
+int8_t ft_get_skybox(char **words, t_cub *clist);
int8_t ft_get_tex_nl(char **words, t_cub *clist);
int8_t ft_get_music(char **words, t_cub *clist);
size_t ft_get_map_h(char **map);
diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h
index b3dd986..edc3dec 100644
--- a/inc/cub3d_defines.h
+++ b/inc/cub3d_defines.h
@@ -162,6 +162,7 @@ enum
# define FT_ERR_RD_EA "could not find east side texture file"
# define FT_ERR_RD_WE "could not find west side texture file"
# define FT_ERR_RD_SP "could not find sprite texture file"
+# define FT_ERR_RD_SB "could not find skybox file"
# 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"
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index a2cf5b5..20b64b5 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -167,6 +167,7 @@ typedef struct s_map
char *fl_tex_path;
char *ce_tex_path;
char *nlevel_path;
+ char *skybox_path;
char *music_path;
char *music_cmd;
char *mapl;
@@ -187,6 +188,7 @@ typedef struct s_map
uint8_t ismusic;
uint8_t isftex;
uint8_t isctex;
+ uint8_t isskybox;
uint8_t darklvl;
uint8_t scale;
uint32_t nlx;
@@ -208,8 +210,8 @@ typedef struct s_cub
int32_t key_input[5];
pid_t mpid;
int (*key_ptr[6])(struct s_cub*);
- int8_t (*get_ptr[12])(char**, struct s_cub*);
- char ref[13][3];
+ int8_t (*get_ptr[13])(char**, struct s_cub*);
+ char ref[14][3];
struct s_win wlist;
struct s_player plist;
struct s_map mlist;