From a4fd7a681376899526cfe38c0449f90feb0f582e Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 15 Nov 2019 15:18:38 +0100 Subject: Added miniLibX man pages --- graphics.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 graphics.c (limited to 'graphics.c') 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) +{ + + +} -- cgit