diff options
Diffstat (limited to 'demo/include/agbx-demo.h')
-rw-r--r-- | demo/include/agbx-demo.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/demo/include/agbx-demo.h b/demo/include/agbx-demo.h new file mode 100644 index 0000000..2dc2313 --- /dev/null +++ b/demo/include/agbx-demo.h @@ -0,0 +1,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 |