comparison examples/dynamic/main.c @ 1067:7b4e80ab671a openvg

merge from default branch
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 01 Dec 2010 12:25:56 +0800
parents 36a63287e1d4
children
comparison
equal deleted inserted replaced
630:bd18951b51d5 1067:7b4e80ab671a
107 107
108 108
109 get_now(&timer); 109 get_now(&timer);
110 MB_TIMEVAL_SET(&interval, 1 ,0); 110 MB_TIMEVAL_SET(&interval, 1 ,0);
111 MB_TIMEVAL_ADD(&timer, &interval); 111 MB_TIMEVAL_ADD(&timer, &interval);
112 mb_tman_timeout( mbaf_get_timer(app), &timer, switch_scene, app); 112 mb_timer_man_timeout( mbaf_get_timer(app), &timer, switch_scene, app);
113 113
114 en->currentscene = (en->currentscene + 1) % 2; 114 en->currentscene = (en->currentscene + 1) % 2;
115 printf("switch to scene %d\n", en->currentscene + 1); 115 printf("switch to scene %d\n", en->currentscene + 1);
116 MB_SPRITE_GOTO_SCENE(app->rootsprite,en->currentscene + 1); 116 MB_SPRITE_GOTO_SCENE(app->rootsprite,en->currentscene + 1);
117 } 117 }
145 draw_text(); 145 draw_text();
146 mbaf_set_data(app,&data); 146 mbaf_set_data(app,&data);
147 MyApp_InitContent(); 147 MyApp_InitContent();
148 get_now(&tmo); 148 get_now(&tmo);
149 MB_TIMEVAL_SET(&interval, 1 ,0); 149 MB_TIMEVAL_SET(&interval, 1 ,0);
150 mb_tman_timeout( mbaf_get_timer(app), &tmo, switch_scene, app); 150 mb_timer_man_timeout( mbaf_get_timer(app), &tmo, switch_scene, app);
151 151
152 152
153 mbaf_loop(app); 153 mbaf_loop(app);
154 154
155 return 0; 155 return 0;