summaryrefslogtreecommitdiff
path: root/demo/include/agbx-demo.h
blob: 2dc2313b8aa0a45b33d3980905c59dd1222d4840 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#if !defined(agbxd_hdr)
#define agbxd_hdr

#include <agbx/bs.h>

typedef struct {
	agbx_i8 x;
	agbx_i8 y;
} agbxd_pos;

typedef struct {
	agbx_i8   col;
	agbxd_pos pos;
	agbx_i8   prevcol;
	agbxd_pos prevpos;
	agbx_i20  vaddr;
} agbxd_dat;

typedef struct {
	bool done;
	bool err;
	bool drw;
	bool mv;
} agbxd_upd;

agbxd_upd agbxd_chkkeys(agbxd_dat * dat);
void      agbxd_chgcol( agbxd_dat * dat,agbx_i8 dir);
void      agbxd_drw(    agbxd_dat * dat);
void      agbxd_initdat(agbxd_dat * dat);
void      agbxd_initgfx(void);
bool      agbxd_loop(   agbxd_dat * dat);

#endif