fee76bf1114d3876826ca860e22e4a64b6d5500b
4 #include "envGLImage.h"
6 /*----------------------------------------------------------------------*\
8 \*---------------------------------------------------------------------*/
10 /*--------------------------------------*\
12 \*-------------------------------------*/
14 class CBI_GLIMAGE Colorf
16 /*--------------------------------------*\
18 \*-------------------------------------*/
22 Colorf(float red
= 0.0f
, float green
= 0.0f
, float blue
= 0.0f
, float alpha
= 0.0f
);
24 Colorf(const Colorf
& source
);
26 /*--------------------------------------*\
28 \*-------------------------------------*/
34 /*--------------------------------------*\
36 \*-------------------------------------*/
40 inline float getRed() const
45 inline float getGreen() const
50 inline float getBlue() const
55 inline float getAlpha() const
60 inline float* getTabColor()
65 /*--------------------------------------*\
67 \*-------------------------------------*/
70 inline void setRed(float red
)
75 inline void setGreen(float green
)
79 inline void setBlue(float blue
)
84 inline void setAlpha(float alpha
)
89 /*--------------------------------------*\
91 \*-------------------------------------*/
93 static Colorf
toHSB(float h01
, float s01
, float b01
, float a01
= 1.0f
);
95 /*--------------------------------------*\
97 \*------------------------------------*/
107 /*----------------------------------------------------------------------*\
109 \*---------------------------------------------------------------------*/