summaryrefslogtreecommitdiff
path: root/src/mbgl/gfx/primitives.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/gfx/primitives.hpp')
-rw-r--r--src/mbgl/gfx/primitives.hpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/mbgl/gfx/primitives.hpp b/src/mbgl/gfx/primitives.hpp
new file mode 100644
index 0000000000..f92b1ec525
--- /dev/null
+++ b/src/mbgl/gfx/primitives.hpp
@@ -0,0 +1,24 @@
+#pragma once
+
+#include <cstddef>
+
+namespace mbgl {
+namespace gfx {
+
+class Point {
+public:
+ static constexpr std::size_t vertexCount = 1;
+};
+
+class Line {
+public:
+ static constexpr std::size_t vertexCount = 2;
+};
+
+class Triangle {
+public:
+ static constexpr std::size_t vertexCount = 3;
+};
+
+} // namespace gfx
+} // namespace mbgl