diff Framework/Scene2D/Internals/CairoInfoPanelRenderer.h @ 1325:be17fed8c7c5 broker

Added flag in InfoPanelSceneLayer to apply the scene rotation to the displayed image.
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 24 Mar 2020 20:34:28 +0100
parents 2d8ab34c8c91
children
line wrap: on
line diff
--- a/Framework/Scene2D/Internals/CairoInfoPanelRenderer.h	Tue Mar 24 16:24:26 2020 +0100
+++ b/Framework/Scene2D/Internals/CairoInfoPanelRenderer.h	Tue Mar 24 20:34:28 2020 +0100
@@ -36,11 +36,15 @@
       CairoSurface           texture_;
       BitmapAnchor           anchor_;
       bool                   isLinearInterpolation_;
+      bool                   applySceneRotation_;
 
     public:
       CairoInfoPanelRenderer(ICairoContextProvider& target,
                              const ISceneLayer& layer) :
-        target_(target)
+        target_(target),
+        anchor_(BitmapAnchor_TopLeft),
+        applySceneRotation_(false)
+
       {
         Update(layer);
       }