diff options
Diffstat (limited to 'src/mbgl/gl/index_buffer.hpp')
-rw-r--r-- | src/mbgl/gl/index_buffer.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mbgl/gl/index_buffer.hpp b/src/mbgl/gl/index_buffer.hpp index f38d7fd4f5..5d8630b902 100644 --- a/src/mbgl/gl/index_buffer.hpp +++ b/src/mbgl/gl/index_buffer.hpp @@ -1,31 +1,32 @@ #pragma once #include <mbgl/gl/object.hpp> +#include <mbgl/gl/draw_mode.hpp> namespace mbgl { namespace gl { class Line { public: + using DrawMode = Lines; + Line(uint16_t a_, uint16_t b_) : a(a_), b(b_) {} uint16_t a; uint16_t b; - - static constexpr std::size_t IndexCount = 2; }; class Triangle { public: + using DrawMode = Triangles; + Triangle(uint16_t a_, uint16_t b_, uint16_t c_) : a(a_), b(b_), c(c_) {} uint16_t a; uint16_t b; uint16_t c; - - static constexpr std::size_t IndexCount = 3; }; template <class Primitive> |