diff options
Diffstat (limited to 'Color.h')
-rw-r--r-- | Color.h | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -0,0 +1,19 @@ +#ifndef _COLOR_H_ +#define _COLOR_H_ + +class Color +{ + public: + Color(float r0 = 0, float g0 = 0, float b0 = 0, float a0 = 1.0) : r(r0), g(g0), b(b0), a(a0) {} + + float getR() const {return r;} + float getG() const {return g;} + float getB() const {return b;} + float getA() const {return a;} + + private: + float r, g, b, a; +}; + +#endif /*_COLOR_H_*/ + |