| 128 | } |
| 129 | |
| 130 | bool Material::initWithFile(std::string_view validfilename) |
| 131 | { |
| 132 | // Warning: properties is not a "Object" object, must be manually deleted |
| 133 | Properties* properties = Properties::createNonRefCounted(validfilename); |
| 134 | |
| 135 | // get the first material |
| 136 | parseProperties((strlen(properties->getNamespace()) > 0) ? properties : properties->getNextNamespace()); |
| 137 | |
| 138 | AX_SAFE_DELETE(properties); |
| 139 | return true; |
| 140 | } |
| 141 | |
| 142 | bool Material::initWithProperties(Properties* materialProperties) |
| 143 | { |
no test coverage detected