diff options
| author | Vasile Vilvoiu <vasi@vilvoiu.ro> | 2021-07-16 21:00:28 +0300 |
|---|---|---|
| committer | Vasile Vilvoiu <vasi@vilvoiu.ro> | 2021-07-16 21:00:28 +0300 |
| commit | 68e6ebe24cb476997b2ddfc21a5b13fb6f332fa7 (patch) | |
| tree | 646db708a2db1b61904003c81a05b01358cdb4cc /src/renderer.hpp | |
| parent | b13609afcdf66d781db70fb75f6869a052a49079 (diff) | |
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.
Diffstat (limited to 'src/renderer.hpp')
| -rw-r--r-- | src/renderer.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/renderer.hpp b/src/renderer.hpp index a473a2a..01ce397 100644 --- a/src/renderer.hpp +++ b/src/renderer.hpp @@ -30,6 +30,7 @@ class Renderer { private: const Configuration configuration_; const std::size_t fft_count_; + const std::unique_ptr<const ColorMap> color_map_; sf::Font font_; @@ -63,7 +64,7 @@ public: /* render commands */ void RenderFFTArea(const std::vector<uint8_t>& memory); void RenderFFTArea(const std::list<std::vector<uint8_t>>& history); - void RenderLiveFFT(const RealWindow& window, const std::vector<uint8_t>& colors); + std::vector<uint8_t> RenderLiveFFT(const RealWindow& window); /* canvas builder */ sf::Texture GetCanvas(); |
