Changeset 11766 for code/branches/Presentation_HS17_merge/src/libraries
- 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/libraries/tools/Mesh.cc
r11080 r11766 79 79 } 80 80 81 82 81 83 void Mesh::setCastShadows(bool bCastShadows) 82 84 { … … 98 100 if (this->entity_) 99 101 this->entity_->setMaterialName(name); 102 } 103 104 // PRE: a valid Ogre::Entity* entity with a valid subentity at index 105 // POST: changed material of subentity at index to name 106 void Mesh::setSubMaterial(const std::string& name, const int index){ 107 if (this->entity_ && this->entity_->getSubEntity(index)) 108 { 109 this->entity_->getSubEntity(index)->setMaterialName(name); 110 } 111 else 112 orxout() << "ERROR at Index " << index << endl; 100 113 } 101 114 -
code/branches/Presentation_HS17_merge/src/libraries/tools/Mesh.h
r11080 r11766 50 50 void setMaterial(const std::string& name); 51 51 const std::string& getMaterial() const; 52 52 void setSubMaterial(const std::string& name, const int index); 53 53 void setVisible(bool bVisible); 54 54 bool isVisible() const;
Note: See TracChangeset
for help on using the changeset viewer.