diff options
| author | Egor <egor.yusov@gmail.com> | 2019-05-11 01:39:15 +0000 |
|---|---|---|
| committer | Egor <egor.yusov@gmail.com> | 2019-05-11 01:39:15 +0000 |
| commit | 44f94f4b3003df3db242d52592019dea6e3bcbfb (patch) | |
| tree | 48c8fee01016802c246013f7c40ca31f9a2b5d14 /Graphics/GraphicsEngine | |
| parent | Few minor updates to NDK helper (diff) | |
| download | DiligentCore-44f94f4b3003df3db242d52592019dea6e3bcbfb.tar.gz DiligentCore-44f94f4b3003df3db242d52592019dea6e3bcbfb.zip | |
Reworked Android Platform to not depend on NDKHelper & native_app_glue
Removed native_app_glue from core
Added IEngineFactory::InitAndroidFileSystem android-only function
Diffstat (limited to 'Graphics/GraphicsEngine')
| -rw-r--r-- | Graphics/GraphicsEngine/interface/EngineFactory.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 }; } |
