diff options
author | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2018-04-04 15:08:16 -0700 |
---|---|---|
committer | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2018-04-05 18:04:25 -0700 |
commit | dc495e1c9d831ccf928381845ffcb409c5d91271 (patch) | |
tree | fb32b19f15a9ab4421bf11ef275eacc5847fe721 /include | |
parent | 275d753e91501345e00c23166f0c67ccf8741155 (diff) | |
download | qtlocation-mapboxgl-dc495e1c9d831ccf928381845ffcb409c5d91271.tar.gz |
[core] Add Projection matrix to CustomLayerRenderParameters to transform web mercator world coordinates to GL coordinates.
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/style/layers/custom_layer.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mbgl/style/layers/custom_layer.hpp b/include/mbgl/style/layers/custom_layer.hpp index 9911df9a1e..fbe3a4a6c2 100644 --- a/include/mbgl/style/layers/custom_layer.hpp +++ b/include/mbgl/style/layers/custom_layer.hpp @@ -2,6 +2,8 @@ #include <mbgl/style/layer.hpp> +#include <array> + namespace mbgl { namespace style { @@ -17,6 +19,7 @@ struct CustomLayerRenderParameters { double bearing; double pitch; double fieldOfView; + std::array<double, 16> projectionMatrix; }; class CustomLayerHost { |