diff options
Diffstat (limited to 'src/graphics/common')
-rw-r--r-- | src/graphics/common/color.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/graphics/common/color.h b/src/graphics/common/color.h index 70d4618..1f04594 100644 --- a/src/graphics/common/color.h +++ b/src/graphics/common/color.h @@ -20,6 +20,8 @@ // TODO +namespace Gfx { + struct Color { @@ -27,6 +29,13 @@ struct Color }; + +struct ColorHSV +{ + float h,s,v; +}; + + long RetColor(float intensity); long RetColor(Color intensity); Color RetColor(long intensity); @@ -34,3 +43,5 @@ Color RetColor(long intensity); void RGB2HSV(Color src, ColorHSV &dest); void HSV2RGB(ColorHSV src, Color &dest); +}; + |