00001
00002
00003
00004
00005 #ifndef QColor_h
00006 #define QColor_h
00007
00008
00009
00010 class QColor;
00011
00012
00013
00014 #include <GL/glut.h>
00015
00016
00017 class QColor
00018 {
00019 protected:
00020
00021 float R;
00022
00023
00024 float G;
00025
00026
00027 float B;
00028
00029
00030 float A;
00031
00032 public:
00033
00034 void setAsCurrent();
00035
00036
00037 const void set( float r , float g , float b , float a );
00038
00039
00040 virtual float getR();
00041
00042
00043 virtual void setR( float newValue );
00044
00045
00046 virtual float getG();
00047
00048
00049 virtual void setG( float newValue );
00050
00051
00052 virtual float getB();
00053
00054
00055 virtual void setB( float newValue );
00056
00057
00058 virtual float getA();
00059
00060
00061 virtual void setA( float newValue );
00062
00063
00064 void copyFrom( QColor* from );
00065
00066
00067 void print();
00068
00069
00070 QColor( );
00071
00072
00073 virtual ~QColor();
00074
00075
00076 };
00077 #endif
00078