KrisLibrary  1.0.0
GLMaterial.h
1 #ifndef GL_MATERIAL_H
2 #define GL_MATERIAL_H
3 
4 #include "GL.h"
5 #include "GLColor.h"
6 
7 namespace GLDraw {
8 
12 struct GLMaterial
13 {
14  GLMaterial();
15  void setCurrentGL(GLenum tgt = GL_FRONT) const;
16  void setCurrentGL_Front() const;
17  void setCurrentGL_Back() const;
18  void setCurrentGL_FrontAndBack() const;
19 
20  GLColor ambient, diffuse, specular, emission;
21  GLfloat specularExponent;
22 };
23 
24 } //namespace GLDraw
25 
26 #endif
An OpenGL material.
Definition: GLMaterial.h:12
Contains all definitions in the GLDraw package.
Definition: AnyGeometry.h:14
An rgba color.
Definition: GLColor.h:9