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