summaryrefslogtreecommitdiff
path: root/demo/include/ax-demo.h
diff options
context:
space:
mode:
Diffstat (limited to 'demo/include/ax-demo.h')
-rw-r--r--demo/include/ax-demo.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/demo/include/ax-demo.h b/demo/include/ax-demo.h
new file mode 100644
index 0000000..6b354c6
--- /dev/null
+++ b/demo/include/ax-demo.h
@@ -0,0 +1,34 @@
+#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);
+void axd_setcolbdr(ax_i02 vaddr,ax_i01 col);
+
+#endif