Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 6, 2017, 2:51:31 PM (7 years ago)
Author:
varxth
Message:

added setSubMaterial(…) to Model.cc and Mesh.cc

Location:
code/branches/SOBv2_HS17/src/orxonox/graphics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/SOBv2_HS17/src/orxonox/graphics/Model.cc

    r11517 r11534  
     1
    12/*
    23 *   ORXONOX - the hottest 3D action shooter ever to exist
     
    155156    {
    156157        this->mesh_.setMaterial(this->materialName_);
     158    }
     159
     160    // PRE: a valid  Ogre::Entity* entity with a valid subentity at index
     161    // POST: changed material of subentity at index to name
     162    void Model::setSubMaterial(const std::string& name, const int index){
     163        this->mesh_.setSubMaterial(name, index);
    157164    }
    158165
  • code/branches/SOBv2_HS17/src/orxonox/graphics/Model.h

    r11080 r11534  
    8686                { return this->materialName_; }
    8787
     88            void setSubMaterial(const std::string& name, const int index);
     89
     90
    8891        protected:
    8992            /**
Note: See TracChangeset for help on using the changeset viewer.