2014-10-30 22:32:21 +00:00
|
|
|
#include "light.hh"
|
|
|
|
|
2015-03-04 14:22:07 +00:00
|
|
|
Light::Light(glm::vec3 position, glm::vec3 colour, float intensity, float flameYOffset, float flameHeight, float flameWidth)
|
2014-11-17 15:54:17 +00:00
|
|
|
: Entity(position, glm::vec3(0.0f, 0.0f, 0.0f)) {
|
2014-10-30 22:32:21 +00:00
|
|
|
this->colour = colour;
|
|
|
|
this->intensity = intensity;
|
2015-02-24 13:04:56 +00:00
|
|
|
this->flameYOffset = flameYOffset;
|
2015-03-04 14:22:07 +00:00
|
|
|
this->flameHeight = flameHeight;
|
|
|
|
this->flameWidth = flameWidth;
|
2014-10-30 22:32:21 +00:00
|
|
|
}
|
|
|
|
|
2014-11-17 16:50:06 +00:00
|
|
|
Light::Light() {
|
|
|
|
}
|
|
|
|
|
2014-10-30 22:32:21 +00:00
|
|
|
Light::~Light() {
|
|
|
|
}
|
2014-11-03 22:28:06 +00:00
|
|
|
|
|
|
|
glm::vec3 Light::getColour() {
|
|
|
|
return colour;
|
|
|
|
}
|
|
|
|
|
|
|
|
float Light::getIntensity() {
|
|
|
|
return intensity;
|
|
|
|
}
|
2015-02-24 11:56:40 +00:00
|
|
|
|
2015-02-24 13:04:56 +00:00
|
|
|
float Light::getFlameYOffset() {
|
|
|
|
return flameYOffset;
|
2015-02-24 11:56:40 +00:00
|
|
|
}
|