summaryrefslogtreecommitdiff
path: root/src/mbgl/geometry/fill_buffer.cpp
blob: 6cb07ea66af8271946b6b225b7ef9dad333abae6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <mbgl/geometry/fill_buffer.hpp>

#include <mbgl/gl/gl.hpp>

#include <climits>

namespace mbgl {

void FillVertexBuffer::add(vertex_type x, vertex_type y) {
    vertex_type *vertices = static_cast<vertex_type *>(addElement());
    vertices[0] = x;
    vertices[1] = y;
}

} // namespace mbgl