From 1415bf0bd296a9e838cf582e376248deae9b4a7a Mon Sep 17 00:00:00 2001 From: Programerus Date: Wed, 20 Jun 2012 17:38:27 +0300 Subject: Struct Color --- src/graphics/common/color.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/graphics') diff --git a/src/graphics/common/color.h b/src/graphics/common/color.h index fff4b00..70d4618 100644 --- a/src/graphics/common/color.h +++ b/src/graphics/common/color.h @@ -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); -- cgit v1.2.3-1-g7c22