MCPcopy Create free account
hub / github.com/KTStephano/StratusGFX / GetMaterial

Method GetMaterial

Source/Engine/StratusMaterial.cpp:206–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204 }
205
206 MaterialPtr MaterialManager::GetMaterial(const std::string& name) const {
207 auto it = materials_.Find(name);
208 if (it != materials_.End()) return it->second;
209 return nullptr;
210 }
211
212 MaterialPtr MaterialManager::GetOrCreateMaterial(const std::string& name) {
213 auto mat = GetMaterial(name);

Callers 1

ProcessNodeFunction · 0.80

Calls 2

FindMethod · 0.45
EndMethod · 0.45

Tested by

no test coverage detected