diff options
author | Roman Sorokin <sorok-roma@yandex.ru> | 2014-09-15 15:27:35 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:27:24 +0300 |
commit | 7fc1c7184337176926a7d541f4f126510f3c1d6d (patch) | |
tree | d5d584c5b2c095168668802e17893c2d141e3bcc | |
parent | 5a5819333437aa2592158f61a9ee414e2b84340b (diff) |
Methods for getting texture coordinates
-rw-r--r-- | drape/texture_manager.hpp | 1 | ||||
-rw-r--r-- | drape/texture_set_holder.hpp | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/drape/texture_manager.hpp b/drape/texture_manager.hpp index 83931acfa1..7cf1227168 100644 --- a/drape/texture_manager.hpp +++ b/drape/texture_manager.hpp @@ -17,6 +17,7 @@ public: virtual void GetSymbolRegion(string const & symbolName, SymbolRegion & region) const; virtual bool GetGlyphRegion(strings::UniChar charCode, GlyphRegion & region) const; virtual void GetStippleRegion(StipplePenKey const & pen, StippleRegion & region) const; + virtual void GetColorRegion(ColorKey const & pen, TextureSetHolder::ColorRegion & region) const; virtual int GetMaxTextureSet() const; virtual void UpdateDynamicTextures(); diff --git a/drape/texture_set_holder.hpp b/drape/texture_set_holder.hpp index 8bf178a71f..4047358558 100644 --- a/drape/texture_set_holder.hpp +++ b/drape/texture_set_holder.hpp @@ -2,6 +2,7 @@ #include "texture.hpp" #include "stipple_pen_resource.hpp" +#include "texture_of_colors.hpp" #include "../base/string_utils.hpp" @@ -69,9 +70,16 @@ public: uint32_t GetTemplateLength() const; }; + class ColorRegion : public BaseRegion + { + public: + ColorRegion() : BaseRegion() {} + }; + virtual void GetSymbolRegion(string const & symbolName, SymbolRegion & region) const = 0; virtual bool GetGlyphRegion(strings::UniChar charCode, GlyphRegion & region) const = 0; virtual void GetStippleRegion(StipplePenKey const & pen, StippleRegion & region) const = 0; + virtual void GetColorRegion(ColorKey const & pen, ColorRegion & region) const = 0; virtual int GetMaxTextureSet() const = 0; virtual void UpdateDynamicTextures() = 0; |