MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / GatherVisuals

Method GatherVisuals

GTE/Graphics/PlanarReflectionEffect.cpp:236–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236void PlanarReflectionEffect::GatherVisuals(std::shared_ptr<Spatial> const& spatial)
237{
238 auto visual = std::dynamic_pointer_cast<Visual>(spatial);
239 if (visual)
240 {
241 mCasterVisuals.push_back(visual);
242 return;
243 }
244
245 auto node = std::dynamic_pointer_cast<Node>(spatial);
246 if (node)
247 {
248 for (int32_t i = 0; i < node->GetNumChildren(); ++i)
249 {
250 auto const& child = node->GetChild(i);
251 if (child)
252 {
253 GatherVisuals(child);
254 }
255 }
256 }
257}
258
259void PlanarReflectionEffect::GetModelSpacePlanes()
260{

Callers

nothing calls this directly

Calls 2

GetChildMethod · 0.80
GetNumChildrenMethod · 0.45

Tested by

no test coverage detected