Finds the first matching child patch of the given parent node, with the given material
| 117 | |
| 118 | // Finds the first matching child patch of the given parent node, with the given material |
| 119 | inline 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 | |
| 127 | inline scene::INodePtr findFirstEntity(const scene::INodePtr& parent, |
| 128 | const std::function<bool(const IEntityNodePtr&)>& predicate) |
no test coverage detected