shithub: musw

ref: dfb8bd8c95a5ff8633214f483f358d24071a7d8a
dir: /dat.h/

View raw version
#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;
};