diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-02-16 06:48:41 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-02-16 06:48:41 +0000 |
| commit | e33d94fecd272db4bf542541c069e9e2c168c1d5 (patch) | |
| tree | c4c33fe97b817ed67fc505059a6323336660311f /Common/NativeApp/include/Android/AndroidAppBase.h | |
| parent | Updated samples (fixed linux/max build error) (diff) | |
| download | DiligentEngine-e33d94fecd272db4bf542541c069e9e2c168c1d5.tar.gz DiligentEngine-e33d94fecd272db4bf542541c069e9e2c168c1d5.zip | |
Moved NativeApp to Diligent namespace
Diffstat (limited to 'Common/NativeApp/include/Android/AndroidAppBase.h')
| -rw-r--r-- | Common/NativeApp/include/Android/AndroidAppBase.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Common/NativeApp/include/Android/AndroidAppBase.h b/Common/NativeApp/include/Android/AndroidAppBase.h index eeedf75..43e76ef 100644 --- a/Common/NativeApp/include/Android/AndroidAppBase.h +++ b/Common/NativeApp/include/Android/AndroidAppBase.h @@ -31,19 +31,23 @@ #include "NDKHelper.h" struct android_app; + +namespace Diligent +{ + class AndroidAppBase : public AppBase { public: int InitDisplay(); - void SetState( android_app* state ); + void SetState(android_app* state); void InitSensors(); void ProcessSensors( int32_t id ); void DrawFrame(); bool IsReady(); virtual void TrimMemory() = 0; virtual void TermDisplay() = 0; - static int32_t HandleInput( android_app* app, AInputEvent* event ); - static void HandleCmd( struct android_app* app, int32_t cmd ); + static int32_t HandleInput(android_app* app, AInputEvent* event); + static void HandleCmd(android_app* app, int32_t cmd); bool CheckWindowSizeChanged() { auto new_window_width_ = ANativeWindow_getWidth(app_->window); @@ -102,3 +106,5 @@ private: const ASensor* accelerometer_sensor_ = nullptr; ASensorEventQueue* sensor_event_queue_ = nullptr; }; + +} |
