Mercurial > MadButterfly
diff include/mbapp.h @ 294:2ca0773cd48d
* Add MBAF files
* Change begin_index to be start_index
* fix the color setting.
author | wycc |
---|---|
date | Sun, 01 Feb 2009 09:51:12 +0800 |
parents | |
children | 2e97e8082d83 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/mbapp.h Sun Feb 01 09:51:12 2009 +0800 @@ -0,0 +1,19 @@ +#ifndef __APP_H +#define __APP_H +typedef struct _mbapp MBApp; +struct _mbapp { + void *rt; + redraw_man_t *rdman; + mb_sprite_t *rootsprite; + mb_obj_t *root; + void *private; +}; +MBApp *MBApp_Init(char *module); +void MBApp_setData(MBApp *app,void *data); +mb_tman_t *MBApp_getTimer(MBApp *app); +void MBApp_loop(MBApp *en); +#define MBAPP_DATA(app,type) ((type *) ((app)->private)) +#define MBAPP_RDMAN(app) (((MBApp *) app)->rdman) + +#include "mbbutton.h" +#endif