summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/index_buffer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/gl/index_buffer.hpp')
-rw-r--r--src/mbgl/gl/index_buffer.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mbgl/gl/index_buffer.hpp b/src/mbgl/gl/index_buffer.hpp
index b3610f4154..01b6396e00 100644
--- a/src/mbgl/gl/index_buffer.hpp
+++ b/src/mbgl/gl/index_buffer.hpp
@@ -24,7 +24,9 @@ public:
std::size_t byteSize() const { return v.size() * sizeof(uint16_t); }
bool empty() const { return v.empty(); }
+ void clear() { v.clear(); }
const uint16_t* data() const { return v.data(); }
+ const std::vector<uint16_t>& vector() const { return v; }
private:
std::vector<uint16_t> v;