-Material::Loader::Loader(Material &m):
- DataFile::ObjectLoader<Material>(m)
-{
- add("ambient", &Loader::ambient);
- add("diffuse", &Loader::diffuse);
- add("specular", &Loader::specular);
- add("emission", &Loader::emission);
- add("shininess", &Material::shininess);
-}
-
-void Material::Loader::ambient(float r, float g, float b, float a)
-{
- obj.ambient = GL::Color(r, g, b, a);
-}
-
-void Material::Loader::diffuse(float r, float g, float b, float a)
-{
- obj.diffuse = GL::Color(r, g, b, a);
-}
-
-void Material::Loader::specular(float r, float g, float b, float a)