diff options
Diffstat (limited to 'drape/drape_global.hpp')
-rw-r--r-- | drape/drape_global.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drape/drape_global.hpp b/drape/drape_global.hpp index d445f72633..d3933057d0 100644 --- a/drape/drape_global.hpp +++ b/drape/drape_global.hpp @@ -72,4 +72,13 @@ struct FontDecl float m_size = 0; bool m_isSdf = true; }; + +inline std::string DebugPrint(dp::ApiVersion apiVersion) +{ + if (apiVersion == dp::OpenGLES2) + return "OpenGLES2"; + else if (apiVersion == dp::OpenGLES3) + return "OpenGLES3"; + return "Unknown"; +} } // namespace dp |