List of all members.
Public Member Functions |
| | Light (void) |
| | Light (glm::vec3 pos, glm::vec4 ambient, glm::vec4 diffuse, glm::vec4 specular) |
| | Light (glm::vec3 pos, glm::vec4 ambient, glm::vec4 diffuse, glm::vec4 specular, float shineness) |
| | Light (glm::vec3 pos, glm::vec4 ambient, glm::vec4 diffuse, glm::vec4 specular, float shineness, float constant_attenuation, float linear_attenuation, float quadratic_attenuation) |
| | ~Light (void) |
| void | SetPosition (glm::vec3 pos) |
| void | SetAmbient (glm::vec4 ambient) |
| void | SetDiffuse (glm::vec4 diffuse) |
| void | SetSpecular (glm::vec4 specular) |
| void | SetConstantAttenuation (float attenuation) |
| void | SetLinearAttenuation (float attenuation) |
| void | SetQuadraticAttenuation (float attenuation) |
| void | SetShineness (float shineness) |
| Camera * | GetCamera () |
| void | SetCamera (Camera *camera) |
| glm::vec3 | GetPosition () |
| glm::vec4 | GetAmbient () |
| glm::vec4 | GetDiffuse () |
| glm::vec4 | GetSpecular () |
| float | GetConstantAttenuation () |
| float | GetLinearAttenuation () |
| float | GetQuadraticAttenuation () |
| float | GetShineness () |
Constructor & Destructor Documentation
| Light::Light |
( |
glm::vec3 |
pos, |
|
|
glm::vec4 |
ambient, |
|
|
glm::vec4 |
diffuse, |
|
|
glm::vec4 |
specular |
|
) |
| |
Konstruktor
- Parameters:
-
| pos | Lightpos |
| ambient | ambienter Lichtanteil |
| diffuse | diffuse Lichtanteil |
| specular | specular Lichtanteil |
| Light::Light |
( |
glm::vec3 |
pos, |
|
|
glm::vec4 |
ambient, |
|
|
glm::vec4 |
diffuse, |
|
|
glm::vec4 |
specular, |
|
|
float |
shineness |
|
) |
| |
Konstruktor
- Parameters:
-
| pos | Lightpos |
| ambient | ambienter Lichtanteil |
| diffuse | diffuse Lichtanteil |
| specular | specular Lichtanteil |
| Light::Light |
( |
glm::vec3 |
pos, |
|
|
glm::vec4 |
ambient, |
|
|
glm::vec4 |
diffuse, |
|
|
glm::vec4 |
specular, |
|
|
float |
shineness, |
|
|
float |
constant_attenuation, |
|
|
float |
linear_attenuation, |
|
|
float |
quadratic_attenuation |
|
) |
| |
Konstruktor
- Parameters:
-
| pos | Lightpos |
| ambient | ambienter Lichtanteil |
| diffuse | diffuse Lichtanteil |
| specular | specular Lichtanteil |
Member Function Documentation
| glm::vec4 Light::GetAmbient |
( |
| ) |
|
This method returns the ambient value
- Returns:
- ambient ambient value
This method returns the Camera for Shadow mapping
- Returns:
- Camera camera for shadow mapping
| float Light::GetConstantAttenuation |
( |
| ) |
|
This method returns the constant
- Returns:
- position position value
| glm::vec4 Light::GetDiffuse |
( |
| ) |
|
This method returns the diffuse value
- Returns:
- diffuse diffuse value
| float Light::GetLinearAttenuation |
( |
| ) |
|
This method returns the linear attenuation
- Returns:
- linear_attenuation linear attenuation value
| glm::vec3 Light::GetPosition |
( |
| ) |
|
This method returns the position
- Returns:
- position position value
| float Light::GetQuadraticAttenuation |
( |
| ) |
|
This method returns the quadratic attenuation
- Returns:
- quadratic_attenuation quadratic attenuation value
| float Light::GetShineness |
( |
| ) |
|
This method returns the shineness value
- Returns:
- shineness shineness value
| glm::vec4 Light::GetSpecular |
( |
| ) |
|
This method returns the specular value
- Returns:
- specular specular value
| void Light::SetAmbient |
( |
glm::vec4 |
ambient | ) |
|
This method sets the ambient value
- Parameters:
-
| void Light::SetCamera |
( |
Camera * |
camera | ) |
|
This method sets the camera for Shadow mapping Camera camera for shadow mapping
| void Light::SetConstantAttenuation |
( |
float |
attenuation | ) |
|
This method sets the constant attenuation value
- Parameters:
-
| constant | attenuation constant attenuation value |
| void Light::SetDiffuse |
( |
glm::vec4 |
diffuse | ) |
|
This method sets the diffuse value
- Parameters:
-
| void Light::SetLinearAttenuation |
( |
float |
attenuation | ) |
|
This method sets the specular value
- Parameters:
-
| linearAttenuation | linear attenuation value |
| void Light::SetPosition |
( |
glm::vec3 |
pos | ) |
|
This method sets the light position
- Parameters:
-
| void Light::SetQuadraticAttenuation |
( |
float |
attenuation | ) |
|
This method sets the attentuation value
- Parameters:
-
| attentuation | attentuation value |
| void Light::SetShineness |
( |
float |
shineness | ) |
|
This method sets the shinesess value
- Parameters:
-
| void Light::SetSpecular |
( |
glm::vec4 |
specular | ) |
|
This method sets the specular value
- Parameters:
-
The documentation for this class was generated from the following files: