updated main/Material setters & getters for diffuse & specular colors
git-svn-id: svn://anubis/fart/trunk@70 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
parent
18c0c8d45f
commit
434064c03c
@ -12,6 +12,18 @@ class Material
|
|||||||
|
|
||||||
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:
|
protected:
|
||||||
Color m_diffuse_color;
|
Color m_diffuse_color;
|
||||||
Color m_specular_color;
|
Color m_specular_color;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user