Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8583 in orxonox.OLD for branches/gui/src/lib/graphics/importer


Ignore:
Timestamp:
Jun 19, 2006, 1:20:42 PM (19 years ago)
Author:
bensch
Message:

gui: using style.

Location:
branches/gui/src/lib/graphics/importer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/lib/graphics/importer/material.cc

    r8572 r8583  
    4949  this->setName(mtlName);
    5050}
     51
     52Material& 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
    5169
    5270void Material::loadParams(const TiXmlElement* root)
  • branches/gui/src/lib/graphics/importer/material.h

    r8575 r8583  
    4848  void setBlendFuncS(const std::string& sFactor, const std::string& tFactor);
    4949
     50  Color& diffuseColor() { return diffuse; };
    5051  const Color& diffuseColor() const { return diffuse; };
    5152
Note: See TracChangeset for help on using the changeset viewer.