blob: 79af1b7e35fa5b5809d1ce9a9f6c4e651d19c4ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include <mbgl/geometry/elements_buffer.hpp>
using namespace mbgl;
void TriangleElementsBuffer::add(element_type a, element_type b, element_type c) {
element_type *elements = static_cast<element_type *>(addElement());
elements[0] = a;
elements[1] = b;
elements[2] = c;
}
void LineElementsBuffer::add(element_type a, element_type b) {
element_type *elements = static_cast<element_type *>(addElement());
elements[0] = a;
elements[1] = b;
}
void PointElementsBuffer::add(element_type a) {
uint16_t *data = static_cast<element_type *>(addElement());
data[0] = a;
}
|