Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8141 in orxonox.OLD for branches/gui/src/lib/util


Ignore:
Timestamp:
Jun 4, 2006, 1:19:07 AM (19 years ago)
Author:
bensch
Message:

gui: added a class for the Styles of the GUI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/lib/util/color.h

    r7195 r8141  
    1616{
    1717public:
     18  Color(float r, float g, float b, float a) :_r(r), _g(g), _b(b), _a(a) {};
     19  Color(const Color& c) { _r = c._r; _g = c._g; _b = c._b; _a = c._a; };
     20
     21  float r() const { return _r; }
     22  float& r() { return _r; }
     23  float g() const { return _g; }
     24  float& g() { return _g; }
     25  float b() const { return _b; }
     26  float& b() { return _b; }
     27  float a() const { return _a; }
     28  float& a() { return _a; }
     29
     30public:
    1831  static Vector RGBtoHSV (const Vector& RGB);
    1932  static void RGBtoHSV (const Vector& RGB, Vector& HSV);
     
    2437  static float minrgb(float r, float g, float b);
    2538  static float maxrgb(float r, float g, float b);
     39
     40  float       _r;     //!< Red Value.
     41  float       _g;     //!< Green Value.
     42  float       _b;     //!< Blue Value.
     43  float       _a;     //!< Alpha Value.
     44
    2645};
    2746
Note: See TracChangeset for help on using the changeset viewer.