diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2014-11-18 11:09:34 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:32:51 +0300 |
commit | ed45d5f91462d27deea5b8b62dbbb38021fcf676 (patch) | |
tree | 0b19b68dda279492c45313b7ddca0aa534c8b7fd /drape | |
parent | bca3551b258b7a348fbfb827db10eaa79d7f1713 (diff) |
[drape] color and stipple texture must be in the same texture set. It can be changed when i create dynamic texture set forming algo.
Diffstat (limited to 'drape')
-rw-r--r-- | drape/texture_manager.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drape/texture_manager.cpp b/drape/texture_manager.cpp index 512166e9a8..c3e31a922b 100644 --- a/drape/texture_manager.cpp +++ b/drape/texture_manager.cpp @@ -108,6 +108,11 @@ void TextureManager::Init(string const & resourcePrefix) TextureSet * defaultSet = new TextureSet(m_maxTextureBlocks); defaultSet->AddTexture(MovePointer<Texture>(symbols)); + typedef DynamicTexture<StipplePenIndex, StipplePenKey, Texture::StipplePen> TStippleTexture; + typedef DynamicTexture<ColorPalette, ColorKey, Texture::Color> TColorTexture; + defaultSet->AddTexture(MovePointer<Texture>(new TStippleTexture(m2::PointU(1024, 1024), dp::ALPHA))); + defaultSet->AddTexture(MovePointer<Texture>(new TColorTexture(m2::PointU(1024, 1024), dp::RGBA8))); + m_textures.push_back(MasterPointer<TextureSet>(defaultSet)); vector<TransferPointer<Texture> > tempTextures; |