From 0433beffa8c5caae0503082b9776e1035c44f94f Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 14 Nov 2019 11:22:21 +0100 Subject: Added miniLibX and basic .cub generator --- cub3d.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'cub3d.h') diff --git a/cub3d.h b/cub3d.h index 78e5b84..aa30cf4 100644 --- a/cub3d.h +++ b/cub3d.h @@ -49,6 +49,30 @@ typedef struct t_map map; } t_parsing; +typedef struct +{ + t_point origin; + int angle; +} t_ray; + +typedef struct +{ + t_point a; + t_point b; +} t_wall; + +typedef struct +{ + t_point pos; + int view_angle; +} t_player; + +typedef struct +{ + t_ray *rays; + t_player player; +} t_state; + typedef t_bool (*func)(t_parsing *parsing, char *line) t_line_parser_func; typedef struct -- cgit