diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-21 19:06:15 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-21 19:06:15 +0000 |
commit | 8aa04fc836116a58f8ffd1e0c3539b9ea8a94ddf (patch) | |
tree | bb933edb3919ed67d05b098a6b97a73f01746762 /src/math/color.cc | |
parent | 41ad1e4c9e2a70d0a8811f4b035f0d3018045e61 (diff) |
dedicated server, entity transfer
Diffstat (limited to 'src/math/color.cc')
-rw-r--r-- | src/math/color.cc | 11 |
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 |