Struct Color

dev-ui
Programerus 2012-06-20 17:38:27 +03:00
parent 9f784e81f8
commit 1415bf0bd2
1 changed files with 8 additions and 5 deletions

View File

@ -22,12 +22,15 @@
// TODO
struct Color
{
float r, g, b, a;
};
D3DCOLOR RetColor(float intensity);
D3DCOLOR RetColor(D3DCOLORVALUE intensity);
D3DCOLORVALUE RetColor(D3DCOLOR intensity);
long RetColor(float intensity);
long RetColor(Color intensity);
Color RetColor(long intensity);
void RGB2HSV(D3DCOLORVALUE src, ColorHSV &dest);
void HSV2RGB(ColorHSV src, D3DCOLORVALUE &dest);
void RGB2HSV(Color src, ColorHSV &dest);
void HSV2RGB(ColorHSV src, Color &dest);