summaryrefslogtreecommitdiff
path: root/include/mbgl/geometry/fill_buffer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/geometry/fill_buffer.hpp')
-rw-r--r--include/mbgl/geometry/fill_buffer.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/mbgl/geometry/fill_buffer.hpp b/include/mbgl/geometry/fill_buffer.hpp
new file mode 100644
index 0000000000..4a3d5a5b38
--- /dev/null
+++ b/include/mbgl/geometry/fill_buffer.hpp
@@ -0,0 +1,21 @@
+#ifndef MBGL_GEOMETRY_FILL_BUFFER
+#define MBGL_GEOMETRY_FILL_BUFFER
+
+#include "buffer.hpp"
+#include <vector>
+#include <cstdint>
+
+namespace mbgl {
+
+class FillVertexBuffer : public Buffer<
+ 4 // bytes per coordinates (2 * unsigned short == 4 bytes)
+> {
+public:
+ typedef int16_t vertex_type;
+
+ void add(vertex_type x, vertex_type y);
+};
+
+}
+
+#endif