summaryrefslogtreecommitdiff
path: root/src/live.hpp
diff options
context:
space:
mode:
authorVasile Vilvoiu <vasi@vilvoiu.ro>2021-10-21 23:12:06 +0300
committerVasile Vilvoiu <vasi@vilvoiu.ro>2021-10-21 23:12:06 +0300
commit4b9517a148bcd6f47cc2f20a83355093811cc04b (patch)
treeaf982328464a716d6ec98d7fb6c542ce15bbef88 /src/live.hpp
parente18e8eee0e04e936abee1afdf86b8d29e13ec3a7 (diff)
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.
Diffstat (limited to 'src/live.hpp')
-rw-r--r--src/live.hpp7
1 files changed, 4 insertions, 3 deletions
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