aboutsummaryrefslogtreecommitdiff
path: root/graphics.c
blob: 072049885aacca0df4332e7d7426b1b78f584089 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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)
{


}