blob: 74ccfa8267e8c051ec6134ca64bc8d9917d38763 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <mbgl/geometry/circle_buffer.hpp>
#include <mbgl/gl/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);
}
|