PROTO::KLUDGE  0.1
Quick prototyping library for games using SDL and OpenGL.
AmbientLight.hpp
Go to the documentation of this file.
1 #ifndef LIGHT_HPP
2 #define LIGHT_HPP
3 
4 #include <GL\glew.h>
5 #include <glm\glm.hpp>
6 
7 namespace pk
8 {
9 
16 {
17 public:
18 
25 
35  AmbientLight(glm::vec4 color, GLfloat ambientIntensity);
36 
37  ~AmbientLight();
38 
49  void update(GLuint ambientIntensityLocation, GLuint ambientColorLocation);
50 
51 private:
52  glm::vec4 m_color;
54 };
55 
56 }
57 
58 #endif // LIGHT_HPP
AmbientLight()
Default constructor - this is probably not the constructor you want to use - see below.
Definition: AmbientLight.hpp:24
Definition: Game.hpp:7
Class for initializing and using OpenGL ambient lighting.
Definition: AmbientLight.hpp:15
void update(GLuint ambientIntensityLocation, GLuint ambientColorLocation)
Use an OpenGL ambient light source.
GLfloat m_ambientIntensity
Intensity value for the ambient lighting.
Definition: AmbientLight.hpp:53
glm::vec4 m_color
Color of the ambient lighting.
Definition: AmbientLight.hpp:52