ddnet/src/game/g_mapres_col.h

22 lines
387 B
C
Raw Normal View History

2007-11-25 19:42:40 +00:00
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
2008-01-12 17:09:00 +00:00
#ifndef GAME_MAPRES_COL_H
#define GAME_MAPRES_COL_H
2007-12-15 10:24:49 +00:00
#include <game/g_vmath.h>
2007-05-22 15:03:32 +00:00
struct mapres_collision
{
int width;
int height;
int data_index;
};
int col_init(int dividor);
int col_check_point(int x, int y);
2007-12-16 20:31:33 +00:00
int col_width();
int col_height();
bool col_intersect_line(vec2 pos0, vec2 pos1, vec2 *out);
2008-01-12 17:09:00 +00:00
#endif