OLD | NEW |
(Empty) | |
| 1 #include "context.h" |
| 2 #include "dart_host.h" |
| 3 #include "eventloop.h" |
| 4 #include "graphics.h" |
| 5 #include "input_service.h" |
| 6 #include "vm_glue.h" |
| 7 |
| 8 void android_main(android_app* pApplication) { |
| 9 Timer timer; |
| 10 Graphics graphics(pApplication, &timer); |
| 11 VMGlue vmGlue(&graphics); |
| 12 InputService inputService(pApplication, &vmGlue, |
| 13 graphics.getWidth(), graphics.getHeight()); |
| 14 //SoundService lSoundService(pApplication); |
| 15 Context context = { &graphics, &vmGlue, &inputService, &timer }; |
| 16 EventLoop eventLoop(pApplication); |
| 17 DartHost host(&context); |
| 18 eventLoop.run(&host, &context); |
| 19 } |
| 20 |
| 21 |
OLD | NEW |