]> git.tdb.fi Git - libs/gl.git/blob - source/material.h
Make Material::apply const
[libs/gl.git] / source / material.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_MATERIAL_H_
9 #define MSP_GL_MATERIAL_H_
10
11 #include "color.h"
12
13 namespace Msp {
14 namespace GL {
15
16 class Material
17 {
18 private:
19         Color ambient;
20         Color diffuse;
21         Color specular;
22         Color emission;
23         float shininess;
24
25 public:
26         Material();
27         void set_ambient(const Color &a);
28         void set_diffuse(const Color &d);
29         void set_specular(const Color &s);
30         void set_emission(const Color &e);
31         void set_shininess(float s);
32         void apply() const;
33 };
34
35 } // namespace GL
36 } // namespace Msp
37
38 #endif