Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2011-07-31 18:19:27 +0000
committerStijn Buys <ingar@osirion.org>2011-07-31 18:19:27 +0000
commit67ebc66aa1be7188f99e215e1353c27cf203308f (patch)
treeaf799ce09a2ff1426c091c48fb41a07b50972d06 /src/ui/modelview.h
parent12e47f19f008d9134bad137a07a53e75207e50ff (diff)
Added methods to ui::ModelView to pass primary and secondary color to the renderer.
Diffstat (limited to 'src/ui/modelview.h')
-rwxr-xr-xsrc/ui/modelview.h9
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;