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

Method parseProperties

core/renderer/Material.cpp:170–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170bool Material::parseProperties(Properties* materialProperties)
171{
172 setName(materialProperties->getId());
173 auto space = materialProperties->getNextNamespace();
174 while (space)
175 {
176 const char* name = space->getNamespace();
177 if (strcmp(name, "technique") == 0)
178 {
179 parseTechnique(space);
180 }
181 else if (strcmp(name, "renderState") == 0)
182 {
183 parseRenderState(&_renderState.getStateBlock(), space);
184 }
185
186 space = materialProperties->getNextNamespace();
187 }
188 return true;
189}
190
191bool Material::parseTechnique(Properties* techniqueProperties)
192{

Callers

nothing calls this directly

Calls 4

getNextNamespaceMethod · 0.80
getNamespaceMethod · 0.80
setNameFunction · 0.70
getIdMethod · 0.45

Tested by

no test coverage detected