diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-02-25 14:42:53 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2019-02-25 15:25:40 +0100 |
commit | 5416872b744628341b92046cb57efd6dffb3a377 (patch) | |
tree | 1af752e2d586cc6c0731e2789c80aae749a1a881 /src/mbgl/gl/attribute.hpp | |
parent | e800f3754758489e09c55e38bebd00c2203e4886 (diff) | |
download | qtlocation-mapboxgl-5416872b744628341b92046cb57efd6dffb3a377.tar.gz |
[core] remove DrawMode from VertexVector/Buffer
Diffstat (limited to 'src/mbgl/gl/attribute.hpp')
-rw-r--r-- | src/mbgl/gl/attribute.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mbgl/gl/attribute.hpp b/src/mbgl/gl/attribute.hpp index 8cdb03bfe7..9d8947e4e5 100644 --- a/src/mbgl/gl/attribute.hpp +++ b/src/mbgl/gl/attribute.hpp @@ -62,8 +62,8 @@ public: override the number of components available in the buffer for each vertex. Thus, a buffer with only one float for each vertex can be bound to a `vec2` attribute */ - template <class Vertex, class DrawMode> - static AttributeBinding binding(const VertexBuffer<Vertex, DrawMode>& buffer, + template <class Vertex> + static AttributeBinding binding(const VertexBuffer<Vertex>& buffer, std::size_t attributeIndex, std::size_t attributeSize = N) { static_assert(std::is_standard_layout<Vertex>::value, "vertex type must use standard layout"); @@ -262,8 +262,7 @@ public: return result; } - template <class DrawMode> - static Bindings bindings(const VertexBuffer<Vertex, DrawMode>& buffer) { + static Bindings bindings(const VertexBuffer<Vertex>& buffer) { return Bindings { As::Type::binding(buffer, TypeIndex<As, As...>::value)... }; } |