Lugdunum  0.1.0
Light.inl
Go to the documentation of this file.
1 inline void Light::setType(Render::Light::Type type) {
2  _type = type;
3 }
4 
5 inline void Light::setColor(const Math::Vec4f& color) {
6  _color = color;
7 }
8 
9 inline void Light::setDirection(const Math::Vec3f& direction) {
10  _direction = direction;
11 }
12 
13 inline void Light::setConstantAttenuation(float constantAttenuation) {
14  _constantAttenuation = constantAttenuation;
15 }
16 
17 inline void Light::setDistance(float distance) {
18  _distance = distance;
19 }
20 
21 inline void Light::setLinearAttenuation(float linearAttenuation) {
22  _linearAttenuation = linearAttenuation;
23 }
24 
25 inline void Light::setQuadraticAttenuation(float quadraticAttenuation) {
26  _quadraticAttenuation = quadraticAttenuation;
27 }
28 
29 inline void Light::setFalloffAngle(float falloffAngle) {
30  _falloffAngle = falloffAngle;
31 }
32 
33 inline void Light::setFalloffExponent(float falloffExponent) {
34  _falloffExponent = falloffExponent;
35 }