]> git.tdb.fi Git - libs/gl.git/blob - source/color.h
Add Material class
[libs/gl.git] / source / color.h
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2007  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_GL_COLOR_H_
9 #define MSP_GL_COLOR_H_
10
11 #include <GL/gl.h>
12
13 namespace Msp {
14 namespace GL {
15
16 struct Color
17 {
18         float r, g, b, a;
19
20         Color(): r(1), g(1), b(1), a(1) { }
21         Color(float v): r(v), g(v), b(v), a(1) { }
22         Color(float r_, float g_, float b_): r(r_), g(g_), b(b_), a(1) { }
23         Color(float r_, float g_, float b_, float a_): r(r_), g(g_), b(b_), a(a_) { }
24 };
25
26 } // namespace GL
27 } // namespace Msp
28
29 #endif