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

#include <climits>

using 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;
}