summaryrefslogtreecommitdiff
path: root/src/mbgl/geometry/fill_buffer.hpp
blob: 531dcf82fcb4958b900f24565e545889dd72a764 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef MBGL_GEOMETRY_FILL_BUFFER
#define MBGL_GEOMETRY_FILL_BUFFER

#include <mbgl/geometry/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);
};

} // namespace mbgl

#endif