- Timestamp:
- Feb 18, 2018, 4:02:50 PM (7 years ago)
- Location:
- code/branches/Presentation_HS17_merge
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Presentation_HS17_merge
-
code/branches/Presentation_HS17_merge/src/orxonox/graphics/Model.cc
r11080 r11766 1 1 2 /* 2 3 * ORXONOX - the hottest 3D action shooter ever to exist … … 40 41 #include "graphics/MeshLodInformation.h" 41 42 #include "Level.h" 43 42 44 43 45 namespace orxonox … … 155 157 this->mesh_.setMaterial(this->materialName_); 156 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); 164 } 165 157 166 158 167 void Model::changedShadows() -
code/branches/Presentation_HS17_merge/src/orxonox/graphics/Model.h
r11080 r11766 86 86 { return this->materialName_; } 87 87 88 void setSubMaterial(const std::string& name, const int index); 89 90 88 91 protected: 89 92 /**
Note: See TracChangeset
for help on using the changeset viewer.