From e33d94fecd272db4bf542541c069e9e2c168c1d5 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Fri, 15 Feb 2019 22:48:41 -0800 Subject: Moved NativeApp to Diligent namespace --- Common/NativeApp/include/Android/AndroidAppBase.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'Common/NativeApp/include/Android/AndroidAppBase.h') 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; }; + +} -- cgit v1.2.3