| 69 | static bool isValidUniform(const char* name); |
| 70 | |
| 71 | Material* Material::createWithFilename(std::string_view filepath) |
| 72 | { |
| 73 | AXLOGD("Loading material: {}", filepath); |
| 74 | auto validfilename = FileUtils::getInstance()->fullPathForFilename(filepath); |
| 75 | if (!validfilename.empty()) |
| 76 | { |
| 77 | auto mat = new Material(); |
| 78 | if (mat->initWithFile(validfilename)) |
| 79 | { |
| 80 | mat->autorelease(); |
| 81 | return mat; |
| 82 | } |
| 83 | delete mat; |
| 84 | } |
| 85 | |
| 86 | return nullptr; |
| 87 | } |
| 88 | |
| 89 | Material* Material::createWithProperties(Properties* materialProperties) |
| 90 | { |
nothing calls this directly
no test coverage detected