summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/render_tile.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/renderer/render_tile.hpp')
-rw-r--r--src/mbgl/renderer/render_tile.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mbgl/renderer/render_tile.hpp b/src/mbgl/renderer/render_tile.hpp
index e2e0c3d656..02e8667eec 100644
--- a/src/mbgl/renderer/render_tile.hpp
+++ b/src/mbgl/renderer/render_tile.hpp
@@ -24,11 +24,25 @@ public:
Tile& tile;
ClipID clip;
mat4 matrix;
+ mat4 nearClippedMatrix;
bool used = false;
mat4 translatedMatrix(const std::array<float, 2>& translate,
style::TranslateAnchorType anchor,
const TransformState&) const;
+
+ mat4 translatedClipMatrix(const std::array<float, 2>& translate,
+ style::TranslateAnchorType anchor,
+ const TransformState&) const;
+
+ void calculateMatrices(const mat4& projMatrix,
+ const mat4& projClipMatrix,
+ const TransformState&);
+private:
+ mat4 translateVtxMatrix(const mat4& tileMatrix,
+ const std::array<float, 2>& translation,
+ style::TranslateAnchorType anchor,
+ const TransformState& state) const;
};
} // namespace mbgl