From 67ebc66aa1be7188f99e215e1353c27cf203308f Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 31 Jul 2011 18:19:27 +0000 Subject: Added methods to ui::ModelView to pass primary and secondary color to the renderer. --- src/ui/modelview.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/ui/modelview.h') diff --git a/src/ui/modelview.h b/src/ui/modelview.h index c235e99..f63dfa8 100755 --- a/src/ui/modelview.h +++ b/src/ui/modelview.h @@ -23,10 +23,6 @@ public: return modelview_modelname; } - inline math::Color const &color() const { - return modelview_color; - } - inline float zoom() const { return modelview_zoom; } @@ -41,7 +37,7 @@ public: set_modelname(modelname.c_str()); } - void set_color(const math::Color &color); + void set_colors(const math::Color & color_primary, const math::Color & color_secondary); /// print modelview description virtual void print(const size_t indent) const; @@ -81,7 +77,8 @@ protected: private: std::string modelview_modelname; - math::Color modelview_color; + math::Color modelview_color_primary; + math::Color modelview_color_secondary; float modelview_zoom; float modelview_radius; -- cgit v1.2.3