Files
MapLibreParticleLab/src/mbgl/geometry/elements_buffer.cpp
Ansis Brammanis f1edce8e21 remove linejoin shader
The previous commit switched to using triangles for drawing round joins.
2015-04-27 11:44:49 +02:00

17 lines
469 B
C++

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