Changeset 8583 in orxonox.OLD for branches/gui/src/lib/graphics/importer
- Timestamp:
- Jun 19, 2006, 1:20:42 PM (19 years ago)
- Location:
- branches/gui/src/lib/graphics/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/graphics/importer/material.cc
r8572 r8583 49 49 this->setName(mtlName); 50 50 } 51 52 Material& Material::operator=(const Material& material) 53 { 54 this->setIllum(material.illumModel); 55 this->setDiffuseColor(material.diffuseColor()); 56 this->specular = material.specular; 57 this->ambient = material.ambient; 58 this->setShininess(material.shininess); 59 60 this->textures = material.textures; 61 this->sFactor = material.sFactor; 62 this->tFactor = material.tFactor; 63 this->setName(material.getName()); 64 65 return *this; 66 } 67 68 51 69 52 70 void Material::loadParams(const TiXmlElement* root) -
branches/gui/src/lib/graphics/importer/material.h
r8575 r8583 48 48 void setBlendFuncS(const std::string& sFactor, const std::string& tFactor); 49 49 50 Color& diffuseColor() { return diffuse; }; 50 51 const Color& diffuseColor() const { return diffuse; }; 51 52
Note: See TracChangeset
for help on using the changeset viewer.