From 434064c03c1ddaac555d933504802040c576e82d Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Fri, 30 Jan 2009 04:31:18 +0000 Subject: [PATCH] updated main/Material setters & getters for diffuse & specular colors git-svn-id: svn://anubis/fart/trunk@70 7f9b0f55-74a9-4bce-be96-3c2cd072584d --- main/Material.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/main/Material.h b/main/Material.h index 845148f..14dfec8 100644 --- a/main/Material.h +++ b/main/Material.h @@ -12,6 +12,18 @@ class Material Material(); + void setDiffuseColor(const Color & diffuse) + { + m_diffuse_color = diffuse; + } + const Color & getDiffuseColor() const { return m_diffuse_color; } + + void setSpecularColor(const Color & specular) + { + m_specular_color = specular; + } + const Color & getSpecularColor() const { return m_specular_color; } + protected: Color m_diffuse_color; Color m_specular_color;