make most headers private

This commit is contained in:
Konstantin Käfer
2014-12-04 18:29:42 +01:00
parent bff6aeb4da
commit abafb52f37
266 changed files with 138 additions and 98 deletions

View File

@@ -0,0 +1,14 @@
#include <mbgl/geometry/static_vertex_buffer.hpp>
#include <mbgl/platform/gl.hpp>
namespace mbgl {
StaticVertexBuffer::StaticVertexBuffer(std::initializer_list<std::pair<int16_t, int16_t>> init) {
for (const std::pair<int16_t, int16_t> &vertex : init) {
vertex_type *vertices = static_cast<vertex_type *>(addElement());
vertices[0] = vertex.first;
vertices[1] = vertex.second;
}
}
}