00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 inline
00024 Color3::Color3() {}
00025
00026 inline
00027 Color3::Color3(Real r) :
00028 m_r(r),
00029 m_g(r),
00030 m_b(r) {}
00031
00032 inline
00033 Color3::Color3(const Color3 &c) :
00034 m_r(c.m_r),
00035 m_g(c.m_g),
00036 m_b(c.m_b) {}
00037
00038 inline
00039 Color3::Color3(Real r, Real g, Real b) :
00040 m_r(r),
00041 m_g(g),
00042 m_b(b) {}
00043
00044 inline
00045 Material::Material() :
00046 m_ambient(0.0),
00047 m_diffuse(0.0),
00048 m_specular(0.0),
00049 m_texture(0)
00050 {
00051 }
00052
00053 inline
00054 void Material::SetAmbientColor(const Color3 &c) {
00055 m_ambient = c;
00056 }
00057
00058 inline
00059 const Color3 &Material::GetAmbientColor() const {
00060 return m_ambient;
00061 }
00062
00063 inline
00064 void Material::SetDiffuseColor(const Color3 &c) {
00065 m_diffuse = c;
00066 }
00067
00068 inline
00069 const Color3 &Material::GetDiffuseColor() const {
00070 return m_diffuse;
00071 }
00072
00073 inline
00074 void Material::SetSpecularColor(const Color3 &c) {
00075 m_specular = c;
00076 }
00077
00078 inline
00079 const Color3 &Material::GetSpecularColor() const {
00080 return m_specular;
00081 }
00082
00083 inline
00084 void Material::SetTexture(Texture *t) {
00085 m_texture = t;
00086 }
00087
00088 inline
00089 Texture *Material::GetTexture() {
00090 return m_texture;
00091 }
00092
00093 inline
00094 const Texture *Material::GetTexture() const {
00095 return m_texture;
00096 }