Clarifing which offset is meant.

This commit is contained in:
Faerbit 2015-02-24 14:04:56 +01:00
parent 510001b943
commit 2b93aff35d
2 changed files with 7 additions and 7 deletions

View File

@ -1,10 +1,10 @@
#include "light.hh"
Light::Light(glm::vec3 position, glm::vec3 colour, float intensity, float flameOffset)
Light::Light(glm::vec3 position, glm::vec3 colour, float intensity, float flameYOffset)
: Entity(position, glm::vec3(0.0f, 0.0f, 0.0f)) {
this->colour = colour;
this->intensity = intensity;
this->flameOffset = flameOffset;
this->flameYOffset = flameYOffset;
}
Light::Light() {
@ -21,6 +21,6 @@ float Light::getIntensity() {
return intensity;
}
float Light::getFlameOffset() {
return flameOffset;
float Light::getFlameYOffset() {
return flameYOffset;
}

View File

@ -6,14 +6,14 @@
class Light : public Entity {
public:
Light(glm::vec3 position, glm::vec3 colour, float intensity, float flameOffset = 0.0f);
Light(glm::vec3 position, glm::vec3 colour, float intensity, float flameYOffset = 0.0f);
Light();
glm::vec3 getColour();
float getIntensity();
float getFlameOffset();
float getFlameYOffset();
~Light();
private:
float flameOffset;
float flameYOffset;
float intensity;
glm::vec3 colour;
};