]> git.tdb.fi Git - libs/gl.git/blobdiff - source/color.h
Add Material class
[libs/gl.git] / source / color.h
diff --git a/source/color.h b/source/color.h
new file mode 100644 (file)
index 0000000..0fc303a
--- /dev/null
@@ -0,0 +1,29 @@
+/* $Id$
+
+This file is part of libmspgl
+Copyright © 2007  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
+#ifndef MSP_GL_COLOR_H_
+#define MSP_GL_COLOR_H_
+
+#include <GL/gl.h>
+
+namespace Msp {
+namespace GL {
+
+struct Color
+{
+       float r, g, b, a;
+
+       Color(): r(1), g(1), b(1), a(1) { }
+       Color(float v): r(v), g(v), b(v), a(1) { }
+       Color(float r_, float g_, float b_): r(r_), g(g_), b(b_), a(1) { }
+       Color(float r_, float g_, float b_, float a_): r(r_), g(g_), b(b_), a(a_) { }
+};
+
+} // namespace GL
+} // namespace Msp
+
+#endif