blob: f4b0cddec3061871280504624ed95fcd943b296c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <mbgl/geometry/circle_buffer.hpp>
#include <mbgl/platform/gl.hpp>
#include <climits>
using namespace mbgl;
void CircleVertexBuffer::add(vertex_type x, vertex_type y, float ex, float ey) {
vertex_type *vertices = static_cast<vertex_type *>(addElement());
vertices[0] = (x * 2) + ((ex + 1) / 2);
vertices[1] = (y * 2) + ((ey + 1) / 2);
}
|