Index: samples/android_sample/jni/main.cc |
=================================================================== |
--- samples/android_sample/jni/main.cc (revision 0) |
+++ samples/android_sample/jni/main.cc (revision 0) |
@@ -0,0 +1,21 @@ |
+#include "context.h" |
+#include "dart_host.h" |
+#include "eventloop.h" |
+#include "graphics.h" |
+#include "input_service.h" |
+#include "vm_glue.h" |
+ |
+void android_main(android_app* pApplication) { |
+ Timer timer; |
+ Graphics graphics(pApplication, &timer); |
+ VMGlue vmGlue(&graphics); |
+ InputService inputService(pApplication, &vmGlue, |
+ graphics.getWidth(), graphics.getHeight()); |
+ //SoundService lSoundService(pApplication); |
+ Context context = { &graphics, &vmGlue, &inputService, &timer }; |
+ EventLoop eventLoop(pApplication); |
+ DartHost host(&context); |
+ eventLoop.run(&host, &context); |
+} |
+ |
+ |