PROTO::KLUDGE  0.1
Quick prototyping library for games using SDL and OpenGL.
Material.hpp
Go to the documentation of this file.
1 #ifndef MATERIAL_HPP
2 #define MATERIAL_HPP
3 
4 #include <GL\glew.h>
5 #include <glm\glm.hpp>
6 
7 namespace pk
8 {
15 class Material
16 {
17  public:
23  Material();
24 
25  Material(GLfloat specularIntensity, GLfloat shininess);
26 
27  virtual ~Material();
28 
29  void use(GLuint specularIntensityLocation, GLuint shininessLocation);
30 
31  private:
33  GLfloat m_shininess;
34 };
35 
36 }
37 
38 #endif // MATERIAL_HPP
Definition: Game.hpp:7
GLfloat m_shininess
The specular "power" or shininess of the material.
Definition: Material.hpp:33
void use(GLuint specularIntensityLocation, GLuint shininessLocation)
virtual ~Material()
GLfloat m_specularIntensity
The intensity of the reflection.
Definition: Material.hpp:32
Class for creating an OpenGL material with specular lighting (reflection).
Definition: Material.hpp:15
Material()
Default constructor - this is probably not the constructor you want to use - see below.