basic/color/colorf.h

Go to the documentation of this file.
00001 #ifndef _COLORF_H_
00002 #define _COLORF_H_
00003 
00004 namespace Color
00005 {
00006     class Colorf
00007     {
00008     public:
00009         Colorf( const float r, const float g, const float b, const float a = 1.0f );
00010         void GlDraw() const;
00011         Colorf operator-( const Colorf& right ) const;
00012         Colorf operator*( const float f )      const;
00013     
00014         float r;
00015         float g;
00016         float b;
00017         float a;
00018     };
00019 
00020     Colorf MakeColorHSV( const float hue, const float sat, const float val );
00021 
00022 
00023     extern const Colorf black;
00024     extern const Colorf blue;
00025     extern const Colorf blue_50;
00026     extern const Colorf cyan;
00027     extern const Colorf cyan_50;
00028     extern const Colorf green;
00029     extern const Colorf green_50;
00030     extern const Colorf magenta;
00031     extern const Colorf magenta_50;
00032     extern const Colorf opaque;
00033     extern const Colorf orange;
00034     extern const Colorf red;
00035     extern const Colorf red_50;
00036     extern const Colorf transparent;
00037     extern const Colorf white;
00038     extern const Colorf white_50;
00039     extern const Colorf yellow;
00040     extern const Colorf yellow_50;
00041 }
00042 
00043 #endif

Generated on Sat Apr 1 21:30:30 2006 for Motion Planning Kernel by  doxygen 1.4.6-NO