diff options
author | Stijn Buys <ingar@osirion.org> | 2011-07-31 18:19:27 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2011-07-31 18:19:27 +0000 |
commit | 67ebc66aa1be7188f99e215e1353c27cf203308f (patch) | |
tree | af799ce09a2ff1426c091c48fb41a07b50972d06 /src/ui/modelview.h | |
parent | 12e47f19f008d9134bad137a07a53e75207e50ff (diff) |
Added methods to ui::ModelView to pass primary and secondary color to the renderer.
Diffstat (limited to 'src/ui/modelview.h')
-rwxr-xr-x | src/ui/modelview.h | 9 |
1 files changed, 3 insertions, 6 deletions
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; |