PolycodeTemplate.cpp 507 B

12345678910111213141516171819
  1. #include "PolycodeTemplateApp.h"
  2. #include "polycode/view/android/PolycodeView.h"
  3. //#include <android_native_app_glue.h>
  4. void android_main(struct startHelper* helper){
  5. LOGI("Starting");
  6. PolycodeView *view = new PolycodeView(helper->activity, "TemplateApp");
  7. PolycodeTemplateApp *app = new PolycodeTemplateApp(view);
  8. pthread_mutex_lock(&helper->mutex);
  9. helper->running = 1;
  10. pthread_cond_broadcast(&helper->cond);
  11. pthread_mutex_unlock(&helper->mutex);
  12. while(app->Update()) {
  13. }
  14. return;
  15. }