Clarifing which offset is meant.
This commit is contained in:
parent
510001b943
commit
2b93aff35d
8
light.cc
8
light.cc
@ -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;
|
||||
}
|
||||
|
6
light.hh
6
light.hh
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user