From 68e6ebe24cb476997b2ddfc21a5b13fb6f332fa7 Mon Sep 17 00:00:00 2001 From: Vasile Vilvoiu Date: Fri, 16 Jul 2021 21:00:28 +0300 Subject: Render texture onto window on each iteration. Keep colormap in renderer so we don't pass the colormapped windows like animals. Pre-render empty window. Fixes #15. --- src/color-map.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/color-map.cpp') diff --git a/src/color-map.cpp b/src/color-map.cpp index a47d98c..d1d199a 100644 --- a/src/color-map.cpp +++ b/src/color-map.cpp @@ -124,6 +124,11 @@ InterpolationColorMap::Map(const RealWindow& input) const return output; } +std::unique_ptr InterpolationColorMap::Copy() const +{ + return std::make_unique(colors_, values_); +} + TwoColorMap::TwoColorMap(const sf::Color& c1, const sf::Color& c2) : InterpolationColorMap({ c1, c2 }, { 0.0f, 1.0f }) { -- cgit v1.2.3