Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2016-09-06 11:43:03 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2016-09-06 15:12:30 +0300
commitb3752b5aacda9fb4b383ee2933467a7bd2f69cf6 (patch)
tree391789097e2cf38668df3633b6016f1f5f6170c3 /drape_frontend/user_mark_shapes.hpp
parentfeda627f30fd97b62f904c43ca3c8f3f1e608ca0 (diff)
Added tile-based model view for user marks
Diffstat (limited to 'drape_frontend/user_mark_shapes.hpp')
-rw-r--r--drape_frontend/user_mark_shapes.hpp26
1 files changed, 18 insertions, 8 deletions
diff --git a/drape_frontend/user_mark_shapes.hpp b/drape_frontend/user_mark_shapes.hpp
index 361d6c86b3..bd0e35e1ff 100644
--- a/drape_frontend/user_mark_shapes.hpp
+++ b/drape_frontend/user_mark_shapes.hpp
@@ -12,12 +12,22 @@
namespace df
{
- TileKey GetSearchTileKey();
- TileKey GetApiTileKey();
- TileKey GetDebugTileKey();
- TileKey GetBookmarkTileKey(size_t categoryIndex);
- bool IsUserMarkLayer(TileKey const & tileKey);
-
- void CacheUserMarks(UserMarksProvider const * provider, ref_ptr<dp::Batcher> batcher,
- ref_ptr<dp::TextureManager> textures);
+
+struct UserMarkShape
+{
+ dp::GLState m_state;
+ drape_ptr<dp::RenderBucket> m_bucket;
+ TileKey m_tileKey;
+
+ UserMarkShape(dp::GLState const & state, drape_ptr<dp::RenderBucket> && bucket,
+ TileKey const & tileKey)
+ : m_state(state), m_bucket(move(bucket)), m_tileKey(tileKey)
+ {}
+};
+
+using TUserMarkShapes = vector<UserMarkShape>;
+
+TUserMarkShapes CacheUserMarks(UserMarksProvider const * provider,
+ ref_ptr<dp::TextureManager> textures);
+
} // namespace df