summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/index_buffer.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-09-26 12:53:32 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-10-28 17:14:01 -0700
commit0e57d10d77e555a9229f7d522d83f87df7d5180d (patch)
tree2a3c3b0dd4ed6edf385ba8d390d919e469b7a96a /src/mbgl/gl/index_buffer.hpp
parenta4c82b8a3b5e48f3bbccf32be80d45ca78d51515 (diff)
downloadqtlocation-mapboxgl-0e57d10d77e555a9229f7d522d83f87df7d5180d.tar.gz
[core] Modern C++ bindings for OpenGL
Diffstat (limited to 'src/mbgl/gl/index_buffer.hpp')
-rw-r--r--src/mbgl/gl/index_buffer.hpp9
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>