fart/main/Material.h
Josh Holtrop 434064c03c updated main/Material setters & getters for diffuse & specular colors
git-svn-id: svn://anubis/fart/trunk@70 7f9b0f55-74a9-4bce-be96-3c2cd072584d
2009-01-30 04:31:18 +00:00

34 lines
661 B
C++

#ifndef MATERIAL_H
#define MATERIAL_H MATERIAL_H
#include "util/Color.h"
class Material
{
public:
/* static members */
static const Material white;
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;
};
#endif