diff options
author | Leith Bade <leith@mapbox.com> | 2014-12-05 23:16:49 +1100 |
---|---|---|
committer | Leith Bade <leith@mapbox.com> | 2014-12-05 23:16:49 +1100 |
commit | de9eb00276684a10f49a1c490f55266b80238155 (patch) | |
tree | fc713b06541bb1af04e95c70f2e383bcb86a164a /src/mbgl/geometry/fill_buffer.cpp | |
parent | c348c141c5c5754c962d9b7e94af83f097e30487 (diff) | |
parent | ff640132de0fe855314a8fd86adae3a2fb33237b (diff) | |
download | qtlocation-mapboxgl-de9eb00276684a10f49a1c490f55266b80238155.tar.gz |
Merge branch 'master' of github.com:mapbox/mapbox-gl-native into android-mason
Conflicts:
.gitignore
gyp/mbgl-ios.gypi
gyp/mbgl-linux.gypi
gyp/mbgl-osx.gypi
include/mbgl/map/map.hpp
src/mbgl/map/map.cpp
src/mbgl/storage/caching_http_file_source.cpp
Diffstat (limited to 'src/mbgl/geometry/fill_buffer.cpp')
-rw-r--r-- | src/mbgl/geometry/fill_buffer.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mbgl/geometry/fill_buffer.cpp b/src/mbgl/geometry/fill_buffer.cpp new file mode 100644 index 0000000000..3392699431 --- /dev/null +++ b/src/mbgl/geometry/fill_buffer.cpp @@ -0,0 +1,13 @@ +#include <mbgl/geometry/fill_buffer.hpp> + +#include <mbgl/platform/gl.hpp> + +#include <climits> + +using namespace mbgl; + +void FillVertexBuffer::add(vertex_type x, vertex_type y) { + vertex_type *vertices = static_cast<vertex_type *>(addElement()); + vertices[0] = x; + vertices[1] = y; +} |