Mercurial > MadButterfly
annotate 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 |
rev | line source |
---|---|
294 | 1 #ifndef __APP_H |
2 #define __APP_H | |
3 typedef struct _mbapp MBApp; | |
4 struct _mbapp { | |
5 void *rt; | |
6 redraw_man_t *rdman; | |
7 mb_sprite_t *rootsprite; | |
8 mb_obj_t *root; | |
9 void *private; | |
10 }; | |
11 MBApp *MBApp_Init(char *module); | |
12 void MBApp_setData(MBApp *app,void *data); | |
13 mb_tman_t *MBApp_getTimer(MBApp *app); | |
14 void MBApp_loop(MBApp *en); | |
15 #define MBAPP_DATA(app,type) ((type *) ((app)->private)) | |
16 #define MBAPP_RDMAN(app) (((MBApp *) app)->rdman) | |
17 | |
18 #include "mbbutton.h" | |
19 #endif |