Class for initializing and using OpenGL ambient lighting.
More...
#include <AmbientLight.hpp>
|
| AmbientLight () |
| Default constructor - this is probably not the constructor you want to use - see below. More...
|
|
| AmbientLight (glm::vec4 color, GLfloat ambientIntensity) |
| Construct an OpenGL light source from a glm::vec4 color and float value for ambient intensity. More...
|
|
| ~AmbientLight () |
|
void | update (GLuint ambientIntensityLocation, GLuint ambientColorLocation) |
| Use an OpenGL ambient light source. More...
|
|
Class for initializing and using OpenGL ambient lighting.
◆ AmbientLight() [1/2]
pk::AmbientLight::AmbientLight |
( |
| ) |
|
|
inline |
Default constructor - this is probably not the constructor you want to use - see below.
◆ AmbientLight() [2/2]
pk::AmbientLight::AmbientLight |
( |
glm::vec4 |
color, |
|
|
GLfloat |
ambientIntensity |
|
) |
| |
Construct an OpenGL light source from a glm::vec4 color and float value for ambient intensity.
- Parameters
-
glm::vec4 | color - the color of the ambient light. |
GLfloat | ambientIntensity - the value determining the intensity of the ambient light. |
◆ ~AmbientLight()
pk::AmbientLight::~AmbientLight |
( |
| ) |
|
◆ update()
void pk::AmbientLight::update |
( |
GLuint |
ambientIntensityLocation, |
|
|
GLuint |
ambientColorLocation |
|
) |
| |
Use an OpenGL ambient light source.
- Parameters
-
GLuint | ambientIntensityLocation - a value corresponding to a memory location for ambient intensity. |
GLuint | ambientColorLocation - a value corresponding to a memory location for ambient color. |
◆ m_ambientIntensity
GLfloat pk::AmbientLight::m_ambientIntensity |
|
private |
Intensity value for the ambient lighting.
◆ m_color
glm::vec4 pk::AmbientLight::m_color |
|
private |
Color of the ambient lighting.
The documentation for this class was generated from the following file: