MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / findFirstPatchWithMaterial

Function findFirstPatchWithMaterial

test/algorithm/Scene.h:119–125  ·  view source on GitHub ↗

Finds the first matching child patch of the given parent node, with the given material

Source from the content-addressed store, hash-verified

117
118// Finds the first matching child patch of the given parent node, with the given material
119inline scene::INodePtr findFirstPatchWithMaterial(const scene::INodePtr& parent, const std::string& material)
120{
121 return findFirstPatch(parent, [&](const IPatchNodePtr& patch)
122 {
123 return patch->getPatch().getShader() == material;
124 });
125}
126
127inline scene::INodePtr findFirstEntity(const scene::INodePtr& parent,
128 const std::function<bool(const IEntityNodePtr&)>& predicate)

Callers 7

TEST_FFunction · 0.85
TEST_FFunction · 0.85
verifyTargetChanges1Function · 0.85
findPatchWithNumberFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85

Calls 3

findFirstPatchFunction · 0.85
getShaderMethod · 0.80
getPatchMethod · 0.80

Tested by

no test coverage detected