| 286 | |
| 287 | template <typename T> |
| 288 | void RunExample(android_app* state) |
| 289 | { |
| 290 | try |
| 291 | { |
| 292 | ExampleBase::SetAndroidApp(state); |
| 293 | auto tutorial = std::unique_ptr<T>(new T()); |
| 294 | tutorial->Run(); |
| 295 | } |
| 296 | catch (const std::exception& e) |
| 297 | { |
| 298 | LLGL_ANDROID_STDERR("%s\n", e.what()); |
| 299 | } |
| 300 | } |
| 301 | |
| 302 | #define LLGL_IMPLEMENT_EXAMPLE(CLASS) \ |
| 303 | void android_main(android_app* state) \ |