Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/color.cc')
-rw-r--r--src/math/color.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/math/color.cc b/src/math/color.cc
index b0c3f65..9a07b7c 100644
--- a/src/math/color.cc
+++ b/src/math/color.cc
@@ -95,4 +95,15 @@ std::ostream &operator<<(std::ostream &os, const Color &c)
return os;
}
+std::istream &operator>>(std::istream & is, Color & color)
+{
+ float r, g, b, a;
+ is >> r;
+ is >> g;
+ is >> b;
+ is >> a;
+ color = Color(r,g,b,a);
+ return (is);
+}
+
} // namespace math