From 44f94f4b3003df3db242d52592019dea6e3bcbfb Mon Sep 17 00:00:00 2001 From: Egor Date: Fri, 10 May 2019 18:39:15 -0700 Subject: Reworked Android Platform to not depend on NDKHelper & native_app_glue Removed native_app_glue from core Added IEngineFactory::InitAndroidFileSystem android-only function --- Graphics/GraphicsEngine/interface/EngineFactory.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/interface/EngineFactory.h b/Graphics/GraphicsEngine/interface/EngineFactory.h index 5508d841..0c840e9a 100644 --- a/Graphics/GraphicsEngine/interface/EngineFactory.h +++ b/Graphics/GraphicsEngine/interface/EngineFactory.h @@ -51,6 +51,14 @@ public: /// \param [out] ppShaderSourceStreamFactory - Memory address where pointer to the shader source stream factory will be written. virtual void CreateDefaultShaderSourceStreamFactory(const Char* SearchDirectories, IShaderSourceInputStreamFactory** ppShaderSourceFactory)const = 0; + +#if PLATFORM_ANDROID + /// On Android platform, it is necessary to initialize the file system before + /// CreateDefaultShaderSourceStreamFactory() method can be called. + /// \param [in] Activity - Pointer to the activity. + /// \param [in] ActivityClassName - Activity class name. + virtual void InitAndroidFileSystem(void* Activity, const char* ActivityClassName) const = 0; +#endif }; } -- cgit v1.2.3