Mercurial > MadButterfly
comparison examples/dynamic/mbapp.c @ 249:ab8284c8dcee
* Add loopback reference from rdman to the backend. This is only required when we need to acquire the tman for the animation. This is not a reasonable arrangement since the animation should be backend transparent. We should not touch the backend directly from the animation. We should relocate the tman to the rdman.
* Remove reference to the MBApp from the mb_button_t so that it will be easier for us to generate button inside the sprite.
author | wycc |
---|---|
date | Sun, 04 Jan 2009 09:32:49 +0800 |
parents | d9a78c859660 |
children | 248a40d51473 |
comparison
equal
deleted
inserted
replaced
248:1958bb2a87a2 | 249:ab8284c8dcee |
---|---|
8 rt = X_MB_new(":0.0", 800, 600); | 8 rt = X_MB_new(":0.0", 800, 600); |
9 | 9 |
10 app->rt = rt; | 10 app->rt = rt; |
11 app->rdman = X_MB_rdman(rt); | 11 app->rdman = X_MB_rdman(rt); |
12 app->rootsprite= sprite_load(module,app->rdman, app->rdman->root_coord); | 12 app->rootsprite= sprite_load(module,app->rdman, app->rdman->root_coord); |
13 rdman_attach_backend(app->rdman, rt); | |
13 return app; | 14 return app; |
14 } | 15 } |
15 | 16 |
16 void MBApp_setData(MBApp *app,void *data) | 17 void MBApp_setData(MBApp *app,void *data) |
17 { | 18 { |