summaryrefslogtreecommitdiff
path: root/demo/include/agbx-demo.h
blob: 0bb0b22db397260f90da1b4f931c1ff7d9fd56fc (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(axd_hdr)
#define axd_hdr

#include <ax/bs.h>

typedef struct {
	ax_i8 x;
	ax_i8 y;
} axd_pos;

typedef struct {
	ax_i8   col;
	axd_pos pos;
	ax_i8   prevcol;
	axd_pos prevpos;
	ax_i02  vaddr;
} axd_dat;

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

axd_upd axd_chkkeys(axd_dat * dat);
void      axd_chgcol( axd_dat * dat,ax_i8 dir);
void      axd_drw(    axd_dat * dat);
void      axd_initdat(axd_dat * dat);
void      axd_initgfx(void);
bool      axd_loop(   axd_dat * dat);

#endif