Remove prototype boost serialiation code.
[mussa.git] / alg / color.hpp
index 3e4def5e1253bf5cc181ed55508833cc670b16ff..cc11997556f71fd2aa90517a3734a4b99c838272 100644 (file)
@@ -1,8 +1,13 @@
 #ifndef _GLCOLOR_H_
 #define _GLCOLOR_H_
 
+#include <boost/shared_ptr.hpp>
+
 #include <ostream>
 
+class Color;
+typedef boost::shared_ptr<Color> ColorRef;
+
 //! convienece class for handling opengl colors
 class Color
 {
@@ -10,10 +15,11 @@ public:
   Color();
   Color(const Color &);
   //! initialize with red, green, blue, alpha
-  Color(float r, float g, float b, float a=0.0);
+  Color(float r, float g, float b, float a=1.0);
+  Color(const ColorRef);
 
   //! set all channels simultaneously 
-  void set(float r, float g, float b, float a=0.0);
+  void set(float r, float g, float b, float a=1.0);
   //! return an array of 4 colors (stored by class)
   const float* const get() const;
   void setR(float);
@@ -31,7 +37,7 @@ public:
 
 protected:
   float colors[4];
-};
 
+};
 #endif