aboutsummaryrefslogtreecommitdiffstats
path: root/inc/cub3d.h
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-05 20:29:27 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-05 20:29:27 +0100
commita9744a89d31759cf9d5a03beede475ff18a9bf2b (patch)
tree4792abe0a77bafafd11456d95440ff7648cec563 /inc/cub3d.h
parentint16_tamer (diff)
download42-cub3d-a9744a89d31759cf9d5a03beede475ff18a9bf2b.tar.gz
42-cub3d-a9744a89d31759cf9d5a03beede475ff18a9bf2b.tar.bz2
42-cub3d-a9744a89d31759cf9d5a03beede475ff18a9bf2b.tar.xz
42-cub3d-a9744a89d31759cf9d5a03beede475ff18a9bf2b.tar.zst
42-cub3d-a9744a89d31759cf9d5a03beede475ff18a9bf2b.zip
Changed return values
Diffstat (limited to 'inc/cub3d.h')
-rw-r--r--inc/cub3d.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h
index 7ea11d6..7b6cfc5 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -100,6 +100,16 @@ typedef struct s_cub
struct s_rgb c_rgb;
} t_cub;
+/*
+** ret vals:
+** 1: no argv[1]
+** 2: failed structs init
+** 3: failed mlx init
+** 4: map error
+** 5: no map
+** 6: not a .cub
+*/
+
t_win *ft_init_win(void);
t_cub *ft_init_cub(void);
int ft_key_event(int keycode, void *param);