summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/vertex_buffer.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-02-25 14:42:53 +0100
committerKonstantin Käfer <mail@kkaefer.com>2019-02-25 15:25:40 +0100
commit5416872b744628341b92046cb57efd6dffb3a377 (patch)
tree1af752e2d586cc6c0731e2789c80aae749a1a881 /src/mbgl/gl/vertex_buffer.hpp
parente800f3754758489e09c55e38bebd00c2203e4886 (diff)
downloadqtlocation-mapboxgl-5416872b744628341b92046cb57efd6dffb3a377.tar.gz
[core] remove DrawMode from VertexVector/Buffer
Diffstat (limited to 'src/mbgl/gl/vertex_buffer.hpp')
-rw-r--r--src/mbgl/gl/vertex_buffer.hpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mbgl/gl/vertex_buffer.hpp b/src/mbgl/gl/vertex_buffer.hpp
index 9f8b156b25..29eba2e979 100644
--- a/src/mbgl/gl/vertex_buffer.hpp
+++ b/src/mbgl/gl/vertex_buffer.hpp
@@ -10,15 +10,14 @@
namespace mbgl {
namespace gl {
-template <class V, class DrawMode = Indexed>
+template <class V>
class VertexVector {
public:
using Vertex = V;
- static constexpr std::size_t groupSize = DrawMode::bufferGroupSize;
template <class... Args>
void emplace_back(Args&&... args) {
- static_assert(sizeof...(args) == groupSize, "wrong buffer element count");
+ static_assert(sizeof...(args) == 1, "wrong buffer element count");
util::ignore({(v.emplace_back(std::forward<Args>(args)), 0)...});
}
@@ -34,7 +33,7 @@ private:
std::vector<Vertex> v;
};
-template <class V, class DrawMode = Indexed>
+template <class V>
class VertexBuffer {
public:
using Vertex = V;