From a2566b3ebd93e0bbc55a920a7be08054a9377f11 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sat, 15 Dec 2007 10:24:49 +0000 Subject: cleaned up code structure a bit --- src/game/g_mapres_col.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/game/g_mapres_col.h (limited to 'src/game/g_mapres_col.h') diff --git a/src/game/g_mapres_col.h b/src/game/g_mapres_col.h new file mode 100644 index 00000000..5d4427ab --- /dev/null +++ b/src/game/g_mapres_col.h @@ -0,0 +1,13 @@ +/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */ +#include + +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); -- cgit 1.4.1