X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fmaterial.cpp;h=b5ec6a5cd913209940acdd68558f1dc072fda8aa;hb=97015ec7bddd26aa746f5227e4109b7d32438cca;hp=310834f3554a50619dcc404f066a269ca952d666;hpb=50e504e2171295d5922ddf87b358e0024db3ce40;p=libs%2Fgl.git diff --git a/source/material.cpp b/source/material.cpp index 310834f3..b5ec6a5c 100644 --- a/source/material.cpp +++ b/source/material.cpp @@ -66,7 +66,7 @@ const Material *Material::current=0; Material::Loader::Loader(Material &m): - mat(m) + DataFile::ObjectLoader(m) { add("ambient", &Loader::ambient); add("diffuse", &Loader::diffuse); @@ -77,22 +77,22 @@ Material::Loader::Loader(Material &m): void Material::Loader::ambient(float r, float g, float b, float a) { - mat.ambient=GL::Color(r, g, b, a); + obj.ambient=GL::Color(r, g, b, a); } void Material::Loader::diffuse(float r, float g, float b, float a) { - mat.diffuse=GL::Color(r, g, b, a); + obj.diffuse=GL::Color(r, g, b, a); } void Material::Loader::specular(float r, float g, float b, float a) { - mat.specular=GL::Color(r, g, b, a); + obj.specular=GL::Color(r, g, b, a); } void Material::Loader::emission(float r, float g, float b, float a) { - mat.emission=GL::Color(r, g, b, a); + obj.emission=GL::Color(r, g, b, a); } } // namespace GL