Changeset 11783 for code/trunk/src/libraries/tools
- Timestamp:
- Feb 20, 2018, 12:14:40 AM (7 years ago)
- Location:
- code/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/tools/Mesh.cc
r11080 r11783 100 100 } 101 101 102 // PRE: a valid Ogre::Entity* entity with a valid subentity at index 103 // POST: changed material of subentity at index to name 104 void Mesh::setSubMaterial(const std::string& name, const int index){ 105 if (this->entity_ && this->entity_->getSubEntity(index)) 106 { 107 this->entity_->getSubEntity(index)->setMaterialName(name); 108 } 109 else 110 orxout() << "ERROR at Index " << index << endl; 111 } 112 102 113 const std::string& Mesh::getMaterial() const 103 114 { -
code/trunk/src/libraries/tools/Mesh.h
r11080 r11783 51 51 const std::string& getMaterial() const; 52 52 53 void setSubMaterial(const std::string& name, const int index); 54 53 55 void setVisible(bool bVisible); 54 56 bool isVisible() const;
Note: See TracChangeset
for help on using the changeset viewer.