summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/painter.hpp
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-06-19 19:25:33 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2016-07-02 17:21:59 +0300
commit3bf85cc55d662c218e371a03040c4cd5c3cca771 (patch)
treebc14ad9a75826aa68eceb0cf0f64d4b9104f02f2 /src/mbgl/renderer/painter.hpp
parentd8a10ac509d5f56120eb878b5e330dcb4c7abf1b (diff)
downloadqtlocation-mapboxgl-3bf85cc55d662c218e371a03040c4cd5c3cca771.tar.gz
[core] Added StaticRasterVertexBuffer
Diffstat (limited to 'src/mbgl/renderer/painter.hpp')
-rw-r--r--src/mbgl/renderer/painter.hpp33
1 files changed, 20 insertions, 13 deletions
diff --git a/src/mbgl/renderer/painter.hpp b/src/mbgl/renderer/painter.hpp
index 0ea3596775..304132595c 100644
--- a/src/mbgl/renderer/painter.hpp
+++ b/src/mbgl/renderer/painter.hpp
@@ -225,16 +225,23 @@ private:
std::unique_ptr<CircleShader> circleOverdrawShader;
// Set up the stencil quad we're using to generate the stencil mask.
- StaticVertexBuffer tileStencilBuffer = {
+ StaticVertexBuffer tileStencilBuffer {
// top left triangle
- { 0, 0 },
- { util::EXTENT, 0 },
- { 0, util::EXTENT },
+ {{ 0, 0 }},
+ {{ util::EXTENT, 0 }},
+ {{ 0, util::EXTENT }},
// bottom right triangle
- { util::EXTENT, 0 },
- { 0, util::EXTENT },
- { util::EXTENT, util::EXTENT },
+ {{ util::EXTENT, 0 }},
+ {{ 0, util::EXTENT }},
+ {{ util::EXTENT, util::EXTENT }},
+ };
+
+ StaticRasterVertexBuffer rasterBoundsBuffer {
+ {{ 0, 0, 0, 0 }},
+ {{ util::EXTENT, 0, 32767, 0 }},
+ {{ 0, util::EXTENT, 0, 32767 }},
+ {{ util::EXTENT, util::EXTENT, 32767, 32767 }},
};
VertexArrayObject coveringPlainArray;
@@ -248,12 +255,12 @@ private:
VertexArrayObject backgroundOverdrawArray;
// Set up the tile boundary lines we're using to draw the tile outlines.
- StaticVertexBuffer tileBorderBuffer = {
- { 0, 0 },
- { util::EXTENT, 0 },
- { util::EXTENT, util::EXTENT },
- { 0, util::EXTENT },
- { 0, 0 },
+ StaticVertexBuffer tileBorderBuffer {
+ {{ 0, 0 }},
+ {{ util::EXTENT, 0 }},
+ {{ util::EXTENT, util::EXTENT }},
+ {{ 0, util::EXTENT }},
+ {{ 0, 0 }},
};
VertexArrayObject tileBorderArray;