MCPcopy Create free account
hub / github.com/axmolengine/axmol / parseRenderState

Method parseRenderState

core/renderer/Material.cpp:464–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462}
463
464bool 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
484void Material::setName(std::string_view name)
485{

Callers

nothing calls this directly

Calls 3

getNextPropertyMethod · 0.80
setStateMethod · 0.45
getStringMethod · 0.45

Tested by

no test coverage detected