diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-11-15 15:18:38 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-11-15 15:18:38 +0100 |
| commit | a4fd7a681376899526cfe38c0449f90feb0f582e (patch) | |
| tree | 1cf4a074b36903a025652a6ef1ae55e280b6418c /graphics.c | |
| parent | 9e1f4605408821b74c9e74216fbf995d29a3921c (diff) | |
| download | cub3d-a4fd7a681376899526cfe38c0449f90feb0f582e.tar.gz cub3d-a4fd7a681376899526cfe38c0449f90feb0f582e.tar.bz2 cub3d-a4fd7a681376899526cfe38c0449f90feb0f582e.zip | |
Added miniLibX man pages
Diffstat (limited to 'graphics.c')
| -rw-r--r-- | graphics.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/graphics.c b/graphics.c new file mode 100644 index 0000000..0720498 --- /dev/null +++ b/graphics.c @@ -0,0 +1,30 @@ +#include "cub3d.h" + +t_state *create_state(t_parsing *parsing) +{ + t_state *state; + + if ((state = (t_state*)malloc(sizeof(t_state))) == NULL) + return (NULL); + state->running = TRUE; + state->pos.x = 8.0; + state->pos.y = 8.0; + state->dir.x = -1.0; + state->dir.y = 0.0; + state->plane.x = 0.0; + state->plane.y = 0.66; + state->map = parsing->map; + return (state); +} + +void update(t_state *state) +{ + + +} + +void draw_column(int x) +{ + + +} |
