--------------------------------------
| 146 | |
| 147 | //-------------------------------------- |
| 148 | U32 MaterialList::push_back(const String &filename, Material* material) |
| 149 | { |
| 150 | mMaterialNames.push_back(filename); |
| 151 | mMatInstList.push_back(material ? material->createMatInstance() : NULL); |
| 152 | |
| 153 | // return the index |
| 154 | return mMaterialNames.size()-1; |
| 155 | } |
| 156 | |
| 157 | //-------------------------------------- |
| 158 | bool MaterialList::read(Stream &stream) |