PROTO::KLUDGE  0.1
Quick prototyping library for games using SDL and OpenGL.
DiffuseLight.hpp
Go to the documentation of this file.
1 #ifndef DIFFUSELIGHT_HPP
2 #define DIFFUSELIGHT_HPP
3 
4 #include <GL\glew.h>
5 #include <glm\glm.hpp>
6 
7 namespace pk
8 {
15 {
16  public:
23 
38  DiffuseLight(glm::vec4 color, GLfloat ambientIntensity,
39  GLfloat x, GLfloat y, GLfloat z, GLfloat diffuseIntensity);
40 
41  virtual ~DiffuseLight();
42 
59  void update(GLuint ambientIntensityLocation, GLuint ambientColorLocation,
60  GLuint diffuseIntensityLocation, GLuint directionLocation);
61 
62  private:
63  glm::vec4 m_color;
65  glm::vec3 m_direction;
67 };
68 
69 }
70 
71 #endif // DIFFUSELIGHT_HPP
GLfloat m_ambientIntensity
Intensity value for the ambient lighting.
Definition: DiffuseLight.hpp:64
Definition: Game.hpp:7
DiffuseLight()
Default constructor - this is probably not the constructor you want to use - see below.
Definition: DiffuseLight.hpp:22
Class for creating an OpenGL diffuse light.
Definition: DiffuseLight.hpp:14
void update(GLuint ambientIntensityLocation, GLuint ambientColorLocation, GLuint diffuseIntensityLocation, GLuint directionLocation)
Use an OpenGL diffuse light source.
glm::vec3 m_direction
The direction that the light points.
Definition: DiffuseLight.hpp:65
glm::vec4 m_color
Color of the ambient lighting.
Definition: DiffuseLight.hpp:63
GLfloat m_diffuseIntensity
Intensity value for the diffuse lighting.
Definition: DiffuseLight.hpp:66
virtual ~DiffuseLight()