From 4b9517a148bcd6f47cc2f20a83355093811cc04b Mon Sep 17 00:00:00 2001 From: Vasile Vilvoiu Date: Thu, 21 Oct 2021 23:12:06 +0300 Subject: Renderer does not cache colromap and valuemap. * Renderer build colormap from configuration. * Renderer builds (temporary) valuemap from configuration. * LiveOutput no longer needs cmap/vmap parameters. --- src/live.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/live.hpp') diff --git a/src/live.hpp b/src/live.hpp index 33f3b3d..399d856 100644 --- a/src/live.hpp +++ b/src/live.hpp @@ -18,7 +18,8 @@ class LiveOutput { private: /* configuration */ - const Configuration configuration_; + std::size_t width_; + bool is_horizontal_; Renderer renderer_; /* live window */ @@ -38,7 +39,7 @@ public: * @param cmap Color map instance to use. * @param vmap Value map instance to use. */ - LiveOutput(const Configuration& conf, const ColorMap& cmap, const ValueMap& vmap); + LiveOutput(const Configuration& conf); /** * Add a FFT window to the history and render it. @@ -59,4 +60,4 @@ public: void Render(); }; -#endif \ No newline at end of file +#endif -- cgit v1.2.3