From 129866d0d77cb5e84fae5789b6f7b44b0205b19b Mon Sep 17 00:00:00 2001 From: Faerbit Date: Mon, 3 Nov 2014 23:28:06 +0100 Subject: [PATCH] Adding two getters. --- light.cc | 8 ++++++++ light.hh | 2 ++ 2 files changed, 10 insertions(+) diff --git a/light.cc b/light.cc index 4afa2c7..3dc7879 100644 --- a/light.cc +++ b/light.cc @@ -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; +} diff --git a/light.hh b/light.hh index c4c73d1..20c21c5 100644 --- a/light.hh +++ b/light.hh @@ -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;