aboutsummaryrefslogtreecommitdiff
path: root/dat.h
blob: 66db045756c54ed370f69c61ddc79fdccf157ede (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#define FPS2MS(fps)	(1000/(fps))

typedef struct GameState GameState;
typedef struct Derivative Derivative;
typedef struct Conn Conn;

struct GameState
{
	double x, v;
};

struct Derivative
{
	double dx, dv;
};

struct Conn
{
	int *fds;
	ulong off;
	ulong cap;
};