diff Framework/Scene2D/Internals/OpenGLFloatTextureRenderer.cpp @ 914:4d1f57773b5b

Added image inversion support in GrayscaleStyleConfigurator + OpenGLFloatTextureProgram
author Benjamin Golinvaux <bgo@osimis.io>
date Fri, 19 Jul 2019 10:54:03 +0200
parents 6e888cf6a48b
children 1091b2adeb5a
line wrap: on
line diff
--- a/Framework/Scene2D/Internals/OpenGLFloatTextureRenderer.cpp	Fri Jul 19 10:30:40 2019 +0200
+++ b/Framework/Scene2D/Internals/OpenGLFloatTextureRenderer.cpp	Fri Jul 19 10:54:03 2019 +0200
@@ -36,6 +36,7 @@
 
       layerTransform_ = layer.GetTransform();
       layer.GetWindowing(windowCenter_, windowWidth_);
+      invert_ = layer.IsInverted();
     }
 
 
@@ -56,7 +57,7 @@
       if (texture_.get() != NULL)
       {
         program_.Apply(*texture_, AffineTransform2D::Combine(transform, layerTransform_), 
-                       windowCenter_, windowWidth_);
+                       windowCenter_, windowWidth_, invert_);
       }
     }