diff options
author | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2017-05-12 10:20:09 +0300 |
---|---|---|
committer | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2017-05-25 15:28:18 +0300 |
commit | c21d5a7854ee6f4c270cb6242cba581cef07479f (patch) | |
tree | a3cdcc2a1be7158aed1b7dc12e92a5c4017f7049 /drape/texture_manager.hpp | |
parent | 3a00a30e65e65c9120b7ee076bd809f5ac800fee (diff) |
Added Subpixel Morphological Antialiasing (SMAA)
Diffstat (limited to 'drape/texture_manager.hpp')
-rw-r--r-- | drape/texture_manager.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drape/texture_manager.hpp b/drape/texture_manager.hpp index c0a9a74a9d..fa9edb7167 100644 --- a/drape/texture_manager.hpp +++ b/drape/texture_manager.hpp @@ -10,6 +10,7 @@ #include <atomic> #include <list> +#include <string> #include <vector> namespace dp @@ -81,7 +82,7 @@ public: void Release(); void Init(Params const & params); - void Invalidate(string const & resPostfix); + void OnSwitchMapStyle(); void GetSymbolRegion(string const & symbolName, SymbolRegion & region); @@ -107,6 +108,8 @@ public: ref_ptr<Texture> GetSymbolsTexture() const; ref_ptr<Texture> GetTrafficArrowTexture() const; ref_ptr<Texture> GetHatchingTexture() const; + ref_ptr<Texture> GetSMAAAreaTexture() const; + ref_ptr<Texture> GetSMAASearchTexture() const; private: struct GlyphGroup @@ -239,6 +242,7 @@ private: static constexpr size_t GetInvalidGlyphGroup(); private: + std::string m_resPostfix; std::vector<drape_ptr<Texture>> m_symbolTextures; drape_ptr<Texture> m_stipplePenTexture; drape_ptr<Texture> m_colorTexture; @@ -246,6 +250,8 @@ private: drape_ptr<Texture> m_trafficArrowTexture; drape_ptr<Texture> m_hatchingTexture; + drape_ptr<Texture> m_smaaAreaTexture; + drape_ptr<Texture> m_smaaSearchTexture; drape_ptr<GlyphManager> m_glyphManager; drape_ptr<HWTextureAllocator> m_textureAllocator; |