summaryrefslogblamecommitdiff
path: root/demo/source/main.c
blob: ca31e5c532c2cb5e1a5f4d20eb36da73db4b30d4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                      

                   
 




                                        
                  
                                                           
                                                       
                                              
                 
                                  
         
                         
 
#include <agbx-demo.h>

#include <ax/key.h>
#include <ax/gfx.h>

ax_err ax_main(void) {
	axd_dat dat;
	axd_initdat(&dat);
	axd_initgfx();
	bool const err = axd_loop(&dat);
	if (err) {
		for (ax_i01 px = 0x0u;px != 0x9600u;++px) {
			ax_plot1(dat.vaddr,px,dat.col);
			axd_chgcol(&dat,0x1u);
		}
		return ax_err_max;
	}
	return ax_err_ok;
}