diff options
Diffstat (limited to 'demo/source/main.c')
-rw-r--r-- | demo/source/main.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/demo/source/main.c b/demo/source/main.c new file mode 100644 index 0000000..fe75179 --- /dev/null +++ b/demo/source/main.c @@ -0,0 +1,18 @@ +#include <agbx-demo.h> + +#include <agbx/key.h> +#include <agbx/gfx.h> + +agbx_err agbx_main(void) { + agbxd_dat dat; + agbxd_initdat(&dat); + agbxd_initgfx(); + bool const err = agbxd_loop(&dat); + if (err) { + for (agbx_i10 px = 0x0u;px != 0x9600u;++px) { + agbx_setpx1(dat.vaddr,px,dat.col); + agbxd_chgcol(&dat,0x1u); + } + } + return err ? agbx_err_max : agbx_err_ok; +} |