6 //! convienece class for handling opengl colors
12 //! initialize with red, green, blue, alpha
13 Color(float r, float g, float b, float a=0.0);
15 //! set all channels simultaneously
16 void set(float r, float g, float b, float a=0.0);
17 //! return an array of 4 colors (stored by class)
18 const float* const get() const;
28 enum color_channels { RedChannel, GreenChannel, BlueChannel, AlphaChannel };
29 friend bool operator==(const Color&, const Color&);
30 friend std::ostream& operator<<(std::ostream&, const Color&);