summaryrefslogtreecommitdiffstats
path: root/Color.h
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-11-27 20:47:58 +0100
committerMatthias Schiffer <matthias@gamezock.de>2009-11-27 20:47:58 +0100
commit59360094e5ac1ddeb5eda365ac4ccf765786635f (patch)
tree4ddf107804febdfb4550a0e616a07945c65c5e96 /Color.h
downloadc3d-59360094e5ac1ddeb5eda365ac4ccf765786635f.tar
c3d-59360094e5ac1ddeb5eda365ac4ccf765786635f.zip
Initial commit
Diffstat (limited to 'Color.h')
-rw-r--r--Color.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/Color.h b/Color.h
new file mode 100644
index 0000000..ad242c7
--- /dev/null
+++ b/Color.h
@@ -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_*/
+