From fb23c8d47f6dcef429423256d8dddcc0f7184fc4 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Sun, 4 Jun 2023 13:02:14 +0200 Subject: Further advances in nuklear port. Rendering now looks similar to Qt version, needs a few tweaks: * Proper multisampling * Background Missing features: * Barcharts * Interactivity (e.g. brushing/linking in all objects) * History view of interactions --- colorscale.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'colorscale.h') diff --git a/colorscale.h b/colorscale.h index c50deb0..e2854bd 100644 --- a/colorscale.h +++ b/colorscale.h @@ -44,7 +44,7 @@ public: int numColors() const { return m_colors.size(); } template - void sample(int samples, OutputIterator it) const; + void sample(std::size_t samples, OutputIterator it) const; static Color lerp(const Color &c1, const Color &c2, float _t); @@ -54,7 +54,7 @@ protected: }; template -void ColorScale::sample(int samples, OutputIterator it) const +void ColorScale::sample(std::size_t samples, OutputIterator it) const { if (samples < 1) { return; -- cgit v1.2.3