Adding two getters.
This commit is contained in:
parent
b68a2bb079
commit
129866d0d7
8
light.cc
8
light.cc
@ -8,3 +8,11 @@ Light::Light(glm::vec3 position, glm::vec3 rotation, glm::vec3 colour, float int
|
|||||||
|
|
||||||
Light::~Light() {
|
Light::~Light() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
glm::vec3 Light::getColour() {
|
||||||
|
return colour;
|
||||||
|
}
|
||||||
|
|
||||||
|
float Light::getIntensity() {
|
||||||
|
return intensity;
|
||||||
|
}
|
||||||
|
2
light.hh
2
light.hh
@ -9,6 +9,8 @@
|
|||||||
class Light : public Entity {
|
class Light : public Entity {
|
||||||
public:
|
public:
|
||||||
Light(glm::vec3 position, glm::vec3 rotation, glm::vec3 colour, float intensity);
|
Light(glm::vec3 position, glm::vec3 rotation, glm::vec3 colour, float intensity);
|
||||||
|
glm::vec3 getColour();
|
||||||
|
float getIntensity();
|
||||||
~Light();
|
~Light();
|
||||||
private:
|
private:
|
||||||
float intensity;
|
float intensity;
|
||||||
|
Loading…
Reference in New Issue
Block a user