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>2015-06-22 15:38:38 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2015-11-30 16:09:25 +0300
commitf243d859947c05a42d94e715d9f831bf3f88a1e0 (patch)
treebc44237cf7e22431b38beca83d7195ebbb9ced73 /drape/overlay_handle.hpp
parent7508e58bcd6f2cc4988940013972afe029a8a831 (diff)
Added supporting of 32-bit indices
Diffstat (limited to 'drape/overlay_handle.hpp')
-rw-r--r--drape/overlay_handle.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/drape/overlay_handle.hpp b/drape/overlay_handle.hpp
index 855f393792..83a9707745 100644
--- a/drape/overlay_handle.hpp
+++ b/drape/overlay_handle.hpp
@@ -3,6 +3,7 @@
#include "drape/drape_global.hpp"
#include "drape/binding_info.hpp"
#include "drape/index_buffer_mutator.hpp"
+#include "drape/index_storage.hpp"
#include "drape/attribute_buffer_mutator.hpp"
#include "indexer/feature_decl.hpp"
@@ -42,12 +43,12 @@ public:
bool IsIntersect(ScreenBase const & screen, ref_ptr<OverlayHandle> const h) const;
virtual bool IndexesRequired() const { return true; }
- uint16_t * IndexStorage(uint16_t size);
+ void * IndexStorage(uint32_t size);
void GetElementIndexes(ref_ptr<IndexBufferMutator> mutator) const;
virtual void GetAttributeMutation(ref_ptr<AttributeBufferMutator> mutator, ScreenBase const & screen) const;
bool HasDynamicAttributes() const;
- void AddDynamicAttribute(BindingInfo const & binding, uint16_t offset, uint16_t count);
+ void AddDynamicAttribute(BindingInfo const & binding, uint32_t offset, uint32_t count);
FeatureID const & GetFeatureID() const;
double const & GetPriority() const;
@@ -67,7 +68,7 @@ private:
bool m_isVisible;
bool m_isValid;
- vector<uint16_t> m_indexes;
+ dp::IndexStorage m_indexes;
struct LessOffsetNode
{
bool operator()(TOffsetNode const & node1, TOffsetNode const & node2) const