| 462 | } |
| 463 | |
| 464 | bool Material::parseRenderState(RenderState::StateBlock* state, Properties* properties) |
| 465 | { |
| 466 | if (nullptr == state) |
| 467 | { |
| 468 | return false; |
| 469 | } |
| 470 | |
| 471 | auto property = properties->getNextProperty(); |
| 472 | while (property) |
| 473 | { |
| 474 | // Parse uniforms only if the GLProgramState was created |
| 475 | // Render state only can have "strings" or numbers as values. No new namespaces |
| 476 | state->setState(property, properties->getString(property)); |
| 477 | |
| 478 | property = properties->getNextProperty(); |
| 479 | } |
| 480 | |
| 481 | return true; |
| 482 | } |
| 483 | |
| 484 | void Material::setName(std::string_view name) |
| 485 | { |
nothing calls this directly
no test coverage detected