From 8aa04fc836116a58f8ffd1e0c3539b9ea8a94ddf Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 21 Feb 2008 19:06:15 +0000 Subject: dedicated server, entity transfer --- src/math/color.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/math/color.cc') 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 -- cgit v1.2.3