about summary refs log tree commit diff
path: root/src/game/mapres_col.h
blob: 9b7191c86f3d513c44ec77a76544672eac317c3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include <game/vmath.h>

struct mapres_collision
{
	int width;
	int height;
	int data_index;
};

int col_init(int dividor);
int col_check_point(int x, int y);
bool col_intersect_line(vec2 pos0, vec2 pos1, vec2 *out);