Adding two getters.

This commit is contained in:
Faerbit 2014-11-03 23:28:06 +01:00
parent b68a2bb079
commit 129866d0d7
2 changed files with 10 additions and 0 deletions

View File

@ -8,3 +8,11 @@ Light::Light(glm::vec3 position, glm::vec3 rotation, glm::vec3 colour, float int
Light::~Light() {
}
glm::vec3 Light::getColour() {
return colour;
}
float Light::getIntensity() {
return intensity;
}

View File

@ -9,6 +9,8 @@
class Light : public Entity {
public:
Light(glm::vec3 position, glm::vec3 rotation, glm::vec3 colour, float intensity);
glm::vec3 getColour();
float getIntensity();
~Light();
private:
float intensity;