aboutsummaryrefslogtreecommitdiff
path: root/cub3d.h
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-11-14 11:22:21 +0100
committerCharles <sircharlesaze@gmail.com>2019-11-15 06:01:51 +0100
commit0433beffa8c5caae0503082b9776e1035c44f94f (patch)
tree45b94ba359fef2dbca65a2f317d9cc09a4b521fe /cub3d.h
parentb71e91e052a2884626c297cb014cbe2b63131c80 (diff)
downloadcub3d-0433beffa8c5caae0503082b9776e1035c44f94f.tar.gz
cub3d-0433beffa8c5caae0503082b9776e1035c44f94f.tar.bz2
cub3d-0433beffa8c5caae0503082b9776e1035c44f94f.zip
Added miniLibX and basic .cub generator
Diffstat (limited to 'cub3d.h')
-rw-r--r--cub3d.h24
1 files changed, 24 insertions, 0 deletions
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