From 38b2304641e8bb371a8ae3855910ee3636920b22 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Mon, 26 Jan 2009 20:59:46 +0000 Subject: [PATCH] added Color m_color instance variable to Light base class git-svn-id: svn://anubis/fart/trunk@50 7f9b0f55-74a9-4bce-be96-3c2cd072584d --- main/Light.cc | 1 + main/Light.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/main/Light.cc b/main/Light.cc index 6fc6b06..c1b645c 100644 --- a/main/Light.cc +++ b/main/Light.cc @@ -5,5 +5,6 @@ Light::Light(const Vector & position, const Color & color) { m_position = position; + m_color = color; } diff --git a/main/Light.h b/main/Light.h index 1f8b1ee..6096e8b 100644 --- a/main/Light.h +++ b/main/Light.h @@ -10,9 +10,11 @@ class Light public: Light(const Vector & position, const Color & color = Color::white); const Vector & getPosition() const { return m_position; } + const Color & getColor() const { return m_color; } protected: Vector m_position; + Color m_color; }; #endif