|
CG-Project2
|
All utilities for lights and shader data. More...
Functions | |
| LightShaderBlock | getLightInfo (const unsigned int &id) |
| Retrieves a block (struct data) that will be sent to a shader program. The block will contain all the light data. | |
| void | updateColor (const unsigned int &id, const glm::vec3 &color) |
| Updates the light color vector. | |
| void | updateIntensity (const unsigned int &id, const float &intensity) |
| Updates the light intensity value. | |
| void | updateAmbient (const unsigned int &id, const glm::vec3 &ambient) |
| Updates the light ambient vector. | |
| void | updateDiffuse (const unsigned int &id, const glm::vec3 &diffuse) |
| Updates the light diffuse vector. | |
| void | updateSpecular (const unsigned int &id, const glm::vec3 &specular) |
| Updates the light specular vector. | |
| void | updateDirection (const unsigned int &id, const glm::vec3 &direction) |
| Updates the light direction vector. | |
| void | updatePosition (const unsigned int &id, const glm::vec3 &position) |
| Updates the light position vector. | |
| void | updateConstant (const unsigned int &id, const float &constant) |
| Updates the light constant value. | |
| void | updateLinear (const unsigned int &id, const float &linear) |
| Updates the light linear value. | |
| void | updateQuadratic (const unsigned int &id, const float &quadratic) |
| Updates the light quadratic value. | |
| void | updateCutoff (const unsigned int &id, const float &cutoff) |
| Updates the light cutoff value. | |
| void | updateOuterCutoff (const unsigned int &id, const float &outerCutoff) |
| Updates the light outer cutoff value. | |
| void | setLightComputation (const unsigned int &id, const LightComputation &comp) |
| Updates the light computaion of an entity. | |
| LightComputation | getLightComputation (const unsigned int &id) |
| Retrieves the light computation of an entity. | |
All utilities for lights and shader data.
| LightComputation systems::light::getLightComputation | ( | const unsigned int & | id | ) |
Retrieves the light computation of an entity.
| id | the entity id |
| LightShaderBlock systems::light::getLightInfo | ( | const unsigned int & | id | ) |
Retrieves a block (struct data) that will be sent to a shader program. The block will contain all the light data.
| id | the light id |
| void systems::light::setLightComputation | ( | const unsigned int & | id, |
| const LightComputation & | comp ) |
Updates the light computaion of an entity.
| id | the light id |
| comp | the new entity light computation |
| void systems::light::updateAmbient | ( | const unsigned int & | id, |
| const glm::vec3 & | ambient ) |
Updates the light ambient vector.
| id | the light id |
| ambient | the light new ambient |
| void systems::light::updateColor | ( | const unsigned int & | id, |
| const glm::vec3 & | color ) |
Updates the light color vector.
| id | the light id |
| color | the light new color |
| void systems::light::updateConstant | ( | const unsigned int & | id, |
| const float & | constant ) |
Updates the light constant value.
| id | the light id |
| constant | the light new constant |
| void systems::light::updateCutoff | ( | const unsigned int & | id, |
| const float & | cutoff ) |
Updates the light cutoff value.
| id | the light id |
| cutoff | the light new cutoff |
| void systems::light::updateDiffuse | ( | const unsigned int & | id, |
| const glm::vec3 & | diffuse ) |
Updates the light diffuse vector.
| id | the light id |
| diffuse | the light new diffuse |
| void systems::light::updateDirection | ( | const unsigned int & | id, |
| const glm::vec3 & | direction ) |
Updates the light direction vector.
| id | the light id |
| direction | the light new direction |
| void systems::light::updateIntensity | ( | const unsigned int & | id, |
| const float & | intensity ) |
Updates the light intensity value.
| id | the light id |
| intensity | the light new intensity |
| void systems::light::updateLinear | ( | const unsigned int & | id, |
| const float & | linear ) |
Updates the light linear value.
| id | the light id |
| linear | the light new linear |
| void systems::light::updateOuterCutoff | ( | const unsigned int & | id, |
| const float & | outerCutoff ) |
Updates the light outer cutoff value.
| id | the light id |
| outerCutoff | the light new outer cutoff |
| void systems::light::updatePosition | ( | const unsigned int & | id, |
| const glm::vec3 & | position ) |
Updates the light position vector.
| id | the light id |
| position | the light new position |
| void systems::light::updateQuadratic | ( | const unsigned int & | id, |
| const float & | quadratic ) |
Updates the light quadratic value.
| id | the light id |
| quadratic | the light new quadratic |
| void systems::light::updateSpecular | ( | const unsigned int & | id, |
| const glm::vec3 & | specular ) |
Updates the light specular vector.
| id | the light id |
| specular | the light new specular |