aboutsummaryrefslogtreecommitdiff
path: root/cub3d.h
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-11-15 15:18:38 +0100
committerCharles <sircharlesaze@gmail.com>2019-11-15 15:18:38 +0100
commita4fd7a681376899526cfe38c0449f90feb0f582e (patch)
tree1cf4a074b36903a025652a6ef1ae55e280b6418c /cub3d.h
parent9e1f4605408821b74c9e74216fbf995d29a3921c (diff)
downloadcub3d-a4fd7a681376899526cfe38c0449f90feb0f582e.tar.gz
cub3d-a4fd7a681376899526cfe38c0449f90feb0f582e.tar.bz2
cub3d-a4fd7a681376899526cfe38c0449f90feb0f582e.zip
Added miniLibX man pages
Diffstat (limited to 'cub3d.h')
-rw-r--r--cub3d.h22
1 files changed, 19 insertions, 3 deletions
diff --git a/cub3d.h b/cub3d.h
index 6f9ebef..aa1f80d 100644
--- a/cub3d.h
+++ b/cub3d.h
@@ -33,9 +33,9 @@ typedef int t_bool;
typedef struct
{
- int x;
- int y;
-} t_vector;
+ float x;
+ float y;
+} t_vector;
typedef struct
{
@@ -79,6 +79,10 @@ typedef struct s_state
t_vector pos;
t_vector dir;
t_vector plane;
+ t_map map;
+ int width;
+ int height;
+
} t_state;
typedef t_bool (*t_option_parser_func)(t_parsing *parsing, char *line);
@@ -118,4 +122,16 @@ t_bool parse_ceilling_color(t_parsing *parsing, char *line);
int handle_key(int key, void *param);
+/*
+** graphics.c
+*/
+
+t_state *create_state(t_parsing *parsing);
+
+/*
+** render.c
+*/
+
+
+
#endif